摘要:
#include <iostream>#include<algorithm>using namespace std;void qsort(int arr[],int sta,int end){ if(sta<end) { int x,i=sta,j=end; x=arr[i]; while(i<j) { while(arr[j]>x&&i<j) { j--; } if(i<j) { arr[i++]=arr[j]; } while(arr[i]<=x&&i<j) { i++; } if(i< 阅读全文
posted @ 2013-04-14 14:52
algorithms爱好者
阅读(110)
评论(0)
推荐(0)

浙公网安备 33010602011771号