摘要:        
C++中的sort函数可以直接完美地取代Pas中十多行的快排代码,在这里,总结一下sort函数的用法:首先是不加参数的情况:#include#include using namespace std;int main(){ int n,a[10000]; scanf("%d",&n); for (int i=0; i#include using namespace std;bool cmp(int a,int b) {return a>b;};int main(){ int n,a[10000]; scanf("%d",&n); fo    阅读全文
posted @ 2013-12-28 10:05
forever97
阅读(484)
评论(0)
推荐(0)
        

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号