#include
#include
int main(int argc, char **argv)
{
int big;
char s[3][20]={"string1","string2","string3"};
for(i=1;i<3;i++)
{
big = (strcmp(s[big],s[i]))>0?big:i;
}
printf("the biggest string is \"%s\".\n", s[big]);
return 0;
}
阅读(1384) | 评论(0) | 转发(0) |