题目内容
下面的程序可对指定字符串中的字符串进行从大到小排序,请将程序完整。 (注:程序采用了冒泡排序算法) #include<stdio.h> #include<string.h> main() char*str="ABCDabcd",temp; int n,i; n=strlen(str); while(n->1) for(i=0;i<n;i++) if(str[i]<str[i+1]) temp=______; str[i]=str[i+1]; ______=temp; printf(______);
查看答案
搜索结果不匹配?点我反馈