由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - difference between copy constructor and overloaded assignment operator?
相关主题
Q on overloaded assignment vs copy constructor.one question about initializaiton list
question overloading ++ error抠字眼:assignment and initialize in C++
Is the order of initialization a, b, c or c, b, a?c++问题,请高人指点迷津,c++ faq lite的一个例子
operator() overloading 一问一个关于assignment constructor和expection的问题
one question about struct请教问题
C++ operator = overloading用copy & swap有啥优点c++ 里面 this pointer 是完全 un necessary 的吗?
大家觉得C++复杂在哪里?c++ initialize struct
[合集] C# 面试问题讨论*(&b1)=b编译不过,b1=b可以,区别是?
相关话题的讨论汇总
话题: assignment话题: operator
进入Programming版参与讨论
1 (共1页)
M**********n
发帖数: 432
1
RT
L**Q
发帖数: 834
2
a(b) V.S. a = b
In gerneral, if a class needs a copy constructor, it will also need an
assignment operator.

【在 M**********n 的大作中提到】
: RT
1 (共1页)
进入Programming版参与讨论
相关主题
*(&b1)=b编译不过,b1=b可以,区别是?one question about struct
问个c++的弱问题C++ operator = overloading用copy & swap有啥优点
C++ Q02:大家觉得C++复杂在哪里?
why copy assignment operator returns non-const type?[合集] C# 面试问题讨论
Q on overloaded assignment vs copy constructor.one question about initializaiton list
question overloading ++ error抠字眼:assignment and initialize in C++
Is the order of initialization a, b, c or c, b, a?c++问题,请高人指点迷津,c++ faq lite的一个例子
operator() overloading 一问一个关于assignment constructor和expection的问题
相关话题的讨论汇总
话题: assignment话题: operator