#include
#include
using namespace std;
string comp (string &s1, string &s2);
int main()
{
string s1, s2, s3, s4;
cout << "请输入第一个字符串:" <
cout << "请输入第二个字符串" <
cout << "请输入第三个字符串" <
s4 = comp(comp(s1,s2), s3);
cout << "最大的字符串为: "<< s4 <
}
string comp (string &s1, string &s2)
{
if (s1 >= s2)
return s1;
else
return s2;
}
int i, j; int flag; int count; char a[SIZE]; char b[SIZE]; char c[SIZE]; char t[SIZE]; printf("请输入3个字符串a,b,c:\\n"); ,