c++_primer_exercise_130608

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 a synthesized copy-assignment operator for a class if the class does not define its own. 


Exercise 13.8


你可能感兴趣的:(c++_primer_exercise_130608)