文章目录 operator loading(操作符重载-1,成员函数) this返回值:引用 分析Header(头文件)的布局操作符重载-2,非成员函数(无 this)临时对象:返回的 绝不可能是 reference操作符重载-2,非成员函数(无 this)class声明 总结: c++ 操作符 认为是 函数 operator loading(操作符重载-1,成员函数) this 任何的成员函数 都有一个 隐藏的 参数 this 返回值:引用 分析 传递者 无需知道 接收者 是以 reference形式 接收 Header(头文件)的布局 操作符重载-2,非成员函数(无 this) 临时对象:返回的 绝不可能是 reference 文章目录 operator loading(操作符重载-1,成员函数) this返回值:引用 分析Header(头文件)的布局操作符重载-2,非成员函数(无 this)临时对象:返回的 绝不可能是 reference操作符重载-2,非成员函数(无 this)class声明 总结: 操作符重载-2,非成员函数(无 this) class声明 总结: