结构体用于map,set时要重载运算符

#include<iostream> #include<set> using namespace std; struct P { int entry; int time; bool operator<(const P &b)const { return (this->entry<b.entry); } }; int main() { while(!cin.eof())
相关文章
相关标签/搜索