从键盘输入3个可带空格的字符串(约定:字符数≤127字节),输出最大的字符串。

日期:2011-11-18 13:04:05 人气:1

从键盘输入3个可带空格的字符串(约定:字符数≤127字节),输出最大的字符串。

#include #include char *max(char *s,char *t) { return (strcmp(s,t) > 0) ? s : t; } int main() { char s1[128],s2[128],s3[128]; printf("Please input the first string:\t"); gets(s1); printf("Please input the second
    A+
热门评论