© 1999-2048 dssz.net 粤ICP备11031372号
[C#] 归并排序&&快速排序c#源码
说明: //快速排序 public void q_sort(int low, int high, int[] a) { int pivot, i, j,temp; if (low > high) return; i = low + 1; j = high; pivot=a[low]; while (i <= j ) { while ((i <= high) && (a[i] = low) &&(a[j] > pivot) )//搜索小于枢轴的元素 { j--; } if (i<Anhuy> 上传 | 大小:3kb