struct node{int a;string b;};bool operator<(const node& x,const node& y){if(x.a==y.a)return x.b<y.b;return x.a<y.a;}比如这样,我想要搜索所有a==1但是b为任意值的内容,我该怎么去用find()?如果a==1的情况有很多个,该如何处理?
呼啦一阵风
相关分类