0_0_36060847_16236.cpp:13:27: error: expected ';' at end of member declaration
bool operator<(point p) // 重载小于号,排序用{
^
0_0_36060847_16236.cpp:14:9: error: expected unqualified-id before 'if'
if (this->x == p.x)
^
0_0_36060847_16236.cpp:16:9: error: expected unqualified-id before 'else'
else
^
0_0_36060847_16236.cpp:18:5: error: expected ';' after struct definition
}
^
0_0_36060847_16236.cpp:19:28: error: 'bool operator==(point)' must take exactly two arguments
bool operator==(point p){ // 重载等于号,判断与其他点有没有重合用
^
0_0_36060847_16236.cpp:22:1: error: expected declaration before '}' token
};
^
|