阅读背景:

必须新的一直跟着删除? [重复]

来源:互联网 

I think we all understand the necessity of delete when reassigning a dynamically-allocated pointer in order to prevent memory leaks. However, I'm curious, to what extent does the C++ mandate the usage of delete? For example, take the following programI think we all understand the necessity of dele




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: