template<class Type>
Definition at line 87 of file QuickSort.h. References max. Referenced by QuickSortDesc(). 00088 { 00089 for(int i=left ; i<right ; i++) 00090 { 00091 int max = i; 00092 for(int j=i+1 ; j<=right ; j++) 00093 if(data[j] > data[max]) 00094 max = j; 00095 Type temp = data[max]; 00096 data[max] = data[i]; 00097 data[i] = temp; 00098 } 00099 }
|