Just a note
1、利用类的析构函数避免内存泄漏如果在new和delete之间抛出异常,则delete不被执行,内存泄漏,如下代码只输出"new",delete没有被调到:
Powered by: C++博客 Copyright © 大胖