操作符重载类的所有的成员函数隐藏this指针.reference:传递者无需知道接收者是以reference形式接受.//成员函数操作符重载inline complex& __doapl(complex *this,const complex&r){ return *this;}inline complex & complex::operator+=(const complex& r){ return _doapl(this,
c++
2023-09-02
133 点赞
2 评论
201 浏览