struct Node{
int w;
bool operator<(Node a)const
{
return a.w<w;
// 从小到大排序
}
}node[5]
重载小于运算符<
最新推荐文章于 2025-01-03 21:11:30 发布
struct Node{
int w;
bool operator<(Node a)const
{
return a.w<w;
// 从小到大排序
}
}node[5]