堆、快速排序实现
摘要:
比较排序:在排序的最终结果中,各元素的次序依赖于它们之间的比较结果。 1 #include 2 #include 3 #include 4 5 using namespace std; 6 void exchange(int &a,int &b){ 7 8 int temp; 9 temp = a; 10 a = b; 11 b=temp; 12 cout"key) 42 --j; 43 if(ia[largest]) 67 large... 阅读全文
posted @ 2013-06-23 16:06 X周 阅读(263) 评论(0) 推荐(0)
浙公网安备 33010602011771号