//快速排序 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
快速排序类
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Sy