Obj *op = new Obj;
Obj *op2 = op;
delete op;
delete op2; // What happens here?
如果您不小心进行两次删除,最糟糕的情况是什么?有关系吗?编译器会抛出错误吗?
繁华开满天机
回首忆惘然
相关分类