摘要: 1排序(调用 sort) 默认升序 降序: #include<iostream>#include<algorithm>using namespace std;bool cmp(int x, int y) //定义降序排序规则{ return x > y;}int main(){ int n; cin 阅读全文
posted @ 2017-09-12 16:18 code666 阅读(311) 评论(0) 推荐(0) 编辑