摘要: STL的排序太坑了,尤其是在VS2010上重载sort函数的第三个比较参数的时候。invalid operator #include#include#includeusing namespace std;struct Node{ int x; int y;};bool Comp(Node &a,Node &b){ if(a.x==b.x) return b.y>a.y; else return a.x>b.x;}vector node;int main(){ srand((unsigned int)time(0)); for(int i... 阅读全文
posted @ 2014-03-11 14:24 porter_代码工作者 阅读(334) 评论(0) 推荐(0)