标签:blog length select 选择 for style div ++ int
1 void selectionAscSort(int arr[], int length) 2 { 3 for(int i = 0; i < length -1; i++) 4 { 5 for(int j = i + 1; j < length; j++) 6 { 7 if(arr[i] > arr[j]) 8 { 9 arr[i] = arr[i] ^ arr[j]; 10 arr[j] = arr[i] ^ arr[j]; 11 arr[i] = arr[i] ^ arr[j]; 12 } 13 } 14 } 15 }
标签:blog length select 选择 for style div ++ int
原文地址:http://www.cnblogs.com/panda1024/p/6025067.html