摘要: 题目描述: 对输入的n个数进行排序并输出。输入: 输入的第一行包括一个整数n(1 2 #include "StdAfx.h" 3 #include 4 5 //快速排序 6 void quick_sort(int s[], int l, int r) 7 { 8 if (l = x) // 从右向左找第一个小于x的数15 j--; 16 if(i < j)17 s[i++] = s[j];18 19 ... 阅读全文
posted @ 2013-08-07 00:36 Joilee 阅读(357) 评论(0) 推荐(0)