摘要: Creadting Objects on the Heap + Deleting Objects 假定定义好了一个Cat类,在Heap上创建Cat的语法为: Cat *pPointer = new Cat; 此语句调用默认构造函数对其进行实例化。 原理:当delete一个指向heap上的object 阅读全文
posted @ 2018-03-16 19:50 一只大公鸡 阅读(122) 评论(0) 推荐(0)