2018年5月28日
摘要: 一、sort函数 1、头文件包含<algorithm>; 2、sort(begin,end); 3、自定义排序规则: 例编写函数 bool compare(int a, int b) { return a<b; //则从小到大排序 }; 二、qsort函数 1、头文件包含stdlib.h; 2、vo 阅读全文
posted @ 2018-05-28 17:33 D_Eumenides 阅读(244) 评论(0) 推荐(0)