以下程序段将把a的最大值移到末尾位置for(i=1;ia[i+1]){temp=a[i];a[i]=a[i+1];a[i+1]=temp;}

时间:2022-11-16 00:30:37

相似题目