没有,
#include void main(){ int i,j,countA=0,changeA=0,countB=0,changeB=0; char strA[11]={'q','w','e','r','t','y','u','I,'o','p','e'},strB[11]={'q','w','e','r','t','y','u','I,'o','p','e'},tempA,tampB; for(i=0;i<11;i++){ for(j=0;j=65&&(int)strA[j]strA[j+1]){ changeA++; tempA=strA[j]; strA[j]=strA[j+1]; strA[j+1]=tempA; } } } printf("顺序排序,比较次数:%d次,交换%d次!