编写程序:程序功能是从键盘接收一个字符串,然后按照字符顺序从小到 大进行排序,例如,若输入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);这个传的是指针,不是字符