struct结构体 重载运算符
摘要:struct node{ int x,y,z; }; bool operator<(node a,node b) { if(a.x!=b.x) return a.x<b.x; if(a.y!=b.y) return a.y<b.y; return a.z<b.z; }
阅读全文
posted @ 2020-01-16 10:45
posted @ 2020-01-16 10:45