冒泡排序部分这么改
for(int i = 1;i <= 3;i++){ for(int j = i + 1;j <= 3;j++){ if(a[i] > a[j]){ int t = a[i]; a[i] = a[j]; a[j] = t; } } }