标签:std main 输入 include get char put int 字符
#include <stdio.h>
#include <string.h>
int main()
{
char a[100];
char b[100];
char c[100];
char t[100];
gets(a);
gets(b);
gets(c);
if(strcmp(a, b) > 0)
{
strcpy(t, a);
strcpy(a, b);
strcpy(b, t);
}
if(strcmp(a, c) > 0)
{
strcpy(t, a);
strcpy(a, c);
strcpy(c, t);
}
if(strcmp(b, c) > 0)
{
strcpy(t, b);
strcpy(b, c);
strcpy(c, t);
}
puts(a);
puts(b);
puts(c);
return 0;
}
标签:std main 输入 include get char put int 字符
原文地址:https://www.cnblogs.com/minghaomaopao/p/10124337.html