摘要: #include <iostream>using namespace std;int Partition(int a[], int p1, int p2){ int temp = a[p1]; while (p1 < p2) { while (p1 < p2 && a[p2] > temp) p2--; a[p1] = a[p2]; while (p1 < p2 && a[p1] < temp) p1++; a[p2] = a[p1]; } a[p1] = temp; return p1;}void Q... 阅读全文
posted @ 2013-01-11 04:20 rookieeeeee 阅读(188) 评论(0) 推荐(0) 编辑