标签:span 排序 code blog int tmp for nbsp dex
void sort(int data[], int N){ for(int i = 1; i < N; i++){ int max = 0; int maxIndex = 0; for(int j = i; j <= N; j++){ if(max < data[j]) { max = data[j]; maxIndex = j; } } int tmp = data[i]; data[i] = data[maxIndex]; data[maxIndex] = tmp; } }
标签:span 排序 code blog int tmp for nbsp dex
原文地址:http://www.cnblogs.com/linux0537/p/6066676.html