摘要: #include<iostream>#include<functional>#include<queue>#include<vector>using namespace std;struct cmp1{ bool operator () (int &a, int &b) { return a > b ; // 从小到大排序,值 小的 优先级别高 }};struct cmp2{ bool operator () (int &a, int &b) { return a < b; // 从大到... 阅读全文
posted @ 2012-07-22 13:43 煙雨默嘫 阅读(244) 评论(0) 推荐(0) 编辑