int partition (RecType r[]
{ int i=l
for(;i<=h;i++) avg+=R[i]
i=l; avg=avg/(h
while (i<j)
{ while (i<j &&R[j]
if (i<j) R[i]=R[j];
while (i<j &&R[i]
if (i<j) R[j]=R[i];
}
if(R[i]
}
void quicksort (RecType R[]
{if (S<T)
{k=partition (R
quicksart (R
quicksart (R
}
[
From:http://tw.wingwit.com/Article/program/sjjg/201311/23176.html