输入3行,每行n个字符串,按由小到大的顺序输出
# include<stdio.h>
# include<string.h>
int main()
{
char ch1[1000],ch2[1000],ch3[1000],ch4[1000];
int m,n,i,j,k;
gets(ch1);gets(ch2);gets(ch3);
if(strcmp(ch1,ch2)>0)
{
strcpy(ch4,ch2);
strcpy(ch2,ch1);
strcpy(ch1,ch4);
}
if(st.
原创
2021-12-27 19:13:12 ·
8293 阅读 ·
1 评论