摘要:
#include <iostream>#include <set>using namespace std;template<class T>class RuntimeCmp{public: enum cmp_mode{normal,reverse};private: cmp_mode mode;public: RuntimeCmp(cmp_mode m=normal):mode(m){} bool operator() (const T& t1,const T& t2) const{ return mode==normal ?t1<t2 阅读全文
posted @ 2012-08-26 22:04
咆哮的蛋蛋
阅读(134)
评论(0)
推荐(0)
浙公网安备 33010602011771号