c++ 结构体内置函数不同写法的不同效果

摘要: 使用的测试代码: #include using namespace std; struct node { int a,b; bool operator < (const node &e) const { return b > e.b; } }; int main() {