解题思路:
注意事项:
参考代码:
#include<stdio.h>
#include<string.h>
int main()
{
char str1[102],str2[102],str3[102],str4[102],str5[102];
char *temp;
int n,i;
scanf("%s",str1);
scanf("%s",str2);
scanf("%s",str3);
scanf("%s",str4);
scanf("%s",str5);
while(1)
{
if(temp=strlen(str1)>strlen(str2)?str1:str2)
{
if(temp=strlen(temp)>strlen(str3)?temp:str3)
{
if(temp=strlen(temp)>strlen(str4)?temp:str4)
{
if(temp=strlen(temp)>strlen(str5)?temp:str5)
{
break;
}
}
}
}
}
for(i=0;temp[i]!='\0';i++)
{
printf("%c",temp[i]);
}
return 0;
}
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:569 |
C语言程序设计教程(第三版)课后习题12.1 (C语言代码)浏览:987 |
C语言程序设计教程(第三版)课后习题12.3 (C语言代码)浏览:836 |
川哥的吩咐 (C语言代码)浏览:875 |
【偶数求和】 (C++代码)浏览:709 |
数列排序 (C语言代码)浏览:836 |
1012题解浏览:870 |
【偶数求和】 (C语言代码)浏览:431 |
输入输出格式练习 (C语言代码)浏览:850 |
简单的事情 (C语言代码)浏览:638 |