首先数组b是用户输入的数,其次用的是插入排序法
for(int i=1;i<b.length;i++){
int c=b[i];
int j=i-1;
while(b[j]>=c&&j>=0){
b[j+1]=b[j];
j--;
}
b[j+1]=c;
快速帮助 | 运行状态 | 反馈举报 | 关于我们 | 免责声明 | 浙ICP备11060257号 Processed in 0.0033 Second(s) Copyright (C) RQNOJ 2007-2019. All Rights Reserved.