输入三个字符串,按由小到大的顺序输出
Input
3行字符串
Output
按照从小到大输出成3行
Sample Input
cde
afg
abc
Sample Output
abc
afg
cde
#include <stdio.h>
#include <string.h>
int main()
{
char string[200]={
0<
该博客介绍如何在C语言中接收三个字符串输入并按照字典序进行从小到大的排序,给出了输入输出示例。
输入三个字符串,按由小到大的顺序输出
Input
3行字符串
Output
按照从小到大输出成3行
Sample Input
cde
afg
abc
Sample Output
abc
afg
cde
#include <stdio.h>
#include <string.h>
int main()
{
char string[200]={
0<
3100
299

被折叠的 条评论
为什么被折叠?