标签:++ 对象 new 重叠 span 创建多个对象 c++ 应该 div
1 char * buffer = new char[100]; 2 buffer * pc; 3 pc = new (buffer) JustTesting; 4 5 delete pc; // not allowed 6 7 pc.~buffer(); // 显示调用析构函数 8 delete buffer; // allowed
标签:++ 对象 new 重叠 span 创建多个对象 c++ 应该 div
原文地址:https://www.cnblogs.com/suui90/p/13131640.html