0
class Vector{
......
.......
private:
int dim;
public:
int getDim() {
return this->dim;
}
const Vector operator+(const Vector& right){
this->getSize();
}
};
而我在this-> getSize();中有编译错误。这是事实,这个论点是正确的。我不知道问题在哪里。我不尝试修改权利。重载操作符。 const参数会产生一些问题