编写程序:程序功能是从键盘接收一个字符串,然后按照字符顺序从小到 大进行排序,例如,若输入edcba,则应输出abcde。 #i nclude #i ncludevstri ng.h> void mai n() { int i,j; char string[100], c; prin tf("Please in put a stri ng:"); gets(stri ng); /*请填写完整*/ printf("result:%s\...
百度试题 题目编写一个程序,从键盘接收一个字符串,然后按照字符顺序从小到大进行排序,并删除重 相关知识点: 试题来源: 解析反馈 收藏
j,k,m=1;/*m是用来记录相同数(删除)个数*/ char array[N],temp; printf("请输入字符串")...
int strcmp(const char *s1,const char *s2);这个传的是指针,不是字符