摘要: template static void quickSort(T * pArray, int low, int high){ if(low >= high) return; int remberlow = low; int remberhigh = high; //原理以第一位的值为标准,将比它小的值都挪到他左边,比它大的值都挪到右边 //将开始位置腾出,值由base保存,并且base为基准值 T base = pArray[low]; while(low base) { pArray[h... 阅读全文
posted @ 2012-10-28 12:03 何卫 阅读(130) 评论(0) 推荐(0) 编辑