即使用浅拷贝把同一段内存清理了2次,也不会出现视频中的那种无响应情况的,有没有?
即使用浅拷贝把同一段内存清理了2次,也不会出现视频中的那种无响应情况的,有没有?是操作系统阻止了那样的错误么?
Array is created: m_iCount = 20 // 实例化
Copy constructor is running: m_iCount = 20 //实例化2
Array is being deleted: m_iCount = 20
m_pArr is being deleted: 0x681190 //第一次
Array is being deleted: m_iCount = 20
m_pArr is being deleted: 0x681190 //第二次
Process returned 0 (0x0) execution time : 0.053 s
Press any key to continue.