#include #include using namespace std; int main() { string str1, str2; cout << "请输入两个字符串" <> str1 >> str2; if (str1 > str2) cout << "第一个字符串大于第二个字符串" << endl; else if (str1 < str2) cout << "第一个字符串小于第二个字符串" << endl; else cout << "第一个字符串等于第二个字符串" << endl; return 0; }