STL 结构体内重载 一个比较运算符

struct node
{
    ll a, b;
    
    bool operator< (const node &c)const{
        return a < c.a;
    }
}pre[eps];

 

posted @ 2017-12-12 13:21  楼主好菜啊  阅读(690)  评论(0)    收藏  举报