标签:++ 排序 ted pre i++ sort sorted for循环 循环
for (int i = 0; i < unsorted.Length; i++) { for (int j = i; j < unsorted.Length; j++) { if (unsorted[i] > unsorted[j]) { int temp = unsorted[i]; unsorted[i] = unsorted[j]; unsorted[j] = temp; } } }
标签:++ 排序 ted pre i++ sort sorted for循环 循环
原文地址:http://www.cnblogs.com/gongchangkuo/p/7787727.html