摘要: 拷贝赋值:两个对象之间的拷贝 默认拷贝赋值导致错误 #include <iostream> class A { public: A(int i=10){ m_pi = new int(i); ii = i; } A(const A& that) { std::cout << "深拷贝构造函数" << 阅读全文
posted @ 2021-07-06 09:26 天子骄龙 阅读(153) 评论(0) 推荐(0)