下面两种重载运算符有没有区别ya,求大佬解答
查看原帖
下面两种重载运算符有没有区别ya,求大佬解答
299711
单调欧文楼主2021/3/19 08:23
struct node
{
    int to;
    int w;
    bool operator >( const node &x )const
    {
        return x.w < w;
    }
}a[1001];
struct node{
	int to;
	int w;
}a[10001];
bool operator >(node a,node b){
	a.w > b.w;
}
2021/3/19 08:23
加载中...