c++_primer_exercise_130608

来源:互联网 发布:mac做java开发 编辑:程序博客网 时间:2024/06/05 09:48

Exercise 13.6:

Overload operators are functions that have the name operator followed by the symbol for the operator being defined. Hence,the assignment operator is a function named operator=

Just as it does for the copy constructor, the compiler generates asynthesized copy-assignment operator for a class if the class does not define its own. 


Exercise 13.8


0 0
原创粉丝点击