由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - C++ Assignment Operator Question
相关主题
why copy assignment operator returns non-const type?请问关于overloading <<
问个c++的弱问题问题的根源找到了
C++ Q02:Go不支持operator overload
why use static function here?[C++] 入门级问题 increment and decrement operators
one question about overloading operator deleteoperator overloading<< or >>
这段code有啥问题?为什么在overloading中,friend <<不能读取private值呢?
How to overload global new operator?[合集] 又被羞辱了一把... (转载)
operator overloading (C++)新手问题
相关话题的讨论汇总
话题: operator话题: assignment话题: question
进入Programming版参与讨论
1 (共1页)
r**u
发帖数: 1567
1
Given a class, why the overloaded assignment operator returns a reference to
this class? Thanks.
d****i
发帖数: 4809
2
because you want to use '=' operator as l-value

to

【在 r**u 的大作中提到】
: Given a class, why the overloaded assignment operator returns a reference to
: this class? Thanks.

r**u
发帖数: 1567
3
Mainly for x = y = z, thanks.

【在 d****i 的大作中提到】
: because you want to use '=' operator as l-value
:
: to

1 (共1页)
进入Programming版参与讨论
相关主题
新手问题one question about overloading operator delete
C++命名空间和算子重载这段code有啥问题?
operator++ 返回值问题How to overload global new operator?
还是咱们这儿,亲。operator overloading (C++)
why copy assignment operator returns non-const type?请问关于overloading <<
问个c++的弱问题问题的根源找到了
C++ Q02:Go不支持operator overload
why use static function here?[C++] 入门级问题 increment and decrement operators
相关话题的讨论汇总
话题: operator话题: assignment话题: question