摘要: for (int i = 1; i <a.Length; i++){ for (int j = 1; j <=a.Length-i; j++) { if (a[j-1]<a[j])//位置交换 { temp=a[j-1]; a[j-1]=a[j]; a[j]=temp; } }} 阅读全文
posted @ 2015-04-06 00:08 XCml 阅读(111) 评论(0) 推荐(0)