标签:ar on amp as return class c oo 排序
bool compare(const pair<int,int> &a,const pair<int,int>&b) { return a.first<b.first; } pair<int,int> p; vector<pair<int,int>> v; v.push_back(make_pair(4,2)); v.push_back(make_pair(2,4)); sort(v.begin(),v.end(),compare);
标签:ar on amp as return class c oo 排序
原文地址:http://blog.csdn.net/cncnlg/article/details/40680393