为什么 C++ 提供复制构造函数?赋值运算符可以完成相同的任务。与赋值运算符相比,复制构造函数有什么优势吗?
c++ oop copy-constructor
c++ ×1
copy-constructor ×1
oop ×1