结构体内部排序(自定义重载运算符)
struct node
{
int first, second;
friend bool operator < (node a, node b)
{
return a.first > b.first; }
}jl;
struct node
{
int first, second;
friend bool operator < (node a, node b)
{
return a.first > b.first; }
}jl;
共有 0 条评论