我知道C++编译器为类创建了一个复制构造函数.在这种情况下,我们必须编写用户定义的复制构造函数吗?你能举一些例子吗?
c++ copy-constructor
c++ ×1
copy-constructor ×1