2013年10月19日

STL set 用法之 —— 自定义结构体

摘要: 引自:http://blog.csdn.net/lihao21/article/details/6302196/#include #include using namespace std;/*Student结构体*/struct Student { string name; int age; string sex;};/*“仿函数"。为Student set指定排序准则*/class studentSortCriterion { public: bool operator() (const Student &a, const Student &b) con... 阅读全文

posted @ 2013-10-19 20:39 Gddxz 阅读(1568) 评论(0) 推荐(0) 编辑

导航