zhaoshuaishuai深入理解C++11:C++11新特性解析与应用HasPtrMem(const HasPtrMem&h): d(new int(*h.d)){}//拷贝构造函数,从堆中分配内存,并用*h.d初始化 这段代码作者本意应该不存在2021-08-25 18:00:06