switch (inputChar[i]) {//计数ABCDC出现次数
case 'A':
a++;
break;
case 'B':
b++;
break;
case 'C':
c++;
break;
case 'D':
d++;
break;
default:
break;
}
}
//冒泡排序 同时排序次数和对应的字母
int arr[4]= {a,b,c,d};
char trr[4] = {'A','B','C','D'};
int len = 4;
for (int i =0; i< len-1; i++) {
for (int j= 0; j< len-1-i; j++) {
if (arr[j]< arr[j+1]) {