打赏

相关文章

结构体优先队列

要想使用结构体的优先队列&#xff0c; 需要在结构体内部重载小于号。struct node { int x, y; bool operator < (const node & a) const { return x<a.x; } };一个 node 结构体有两个成员&#xff0c;x 和 y&#xff0c;它的小于规则是 x 小者小。它也是…

手机版浏览

扫一扫体验

微信公众账号

微信扫一扫加关注

返回
顶部