摘要: 1 #include 2 using namespace std; 3 4 int Partition( int *R, int low, int high){ 5 R[0] = R[low]; // 将枢轴记录移至数组的闲置分量 6 int pivotkey = R[low]; // 枢轴记录关键字 7 cout =pivotkey ){10 --high;11 }12 if(low =high而退出的循环,不需要移动数据13 R[low++] = R[high]; // 将比枢轴... 阅读全文
posted @ 2013-10-30 15:21 Pacific-hong 阅读(256) 评论(1) 推荐(0) 编辑