struct fun{
int a, b, c;
bool operator< (fun const &W) const{
if (a != W.a) return a < W.a;
if (b != W.b) return b < W.b;
return c < W.c;
}
}f[N];
结构体重载小于号
最新推荐文章于 2024-03-30 16:43:37 发布
struct fun{
int a, b, c;
bool operator< (fun const &W) const{
if (a != W.a) return a < W.a;
if (b != W.b) return b < W.b;
return c < W.c;
}
}f[N];