摘要: #include "stdio.h" class Test { public: Test() { ptr = new int; printf("Test construct -- %p\n", ptr); } ~Test() { // delete this的时候,调用析构函数时this空间还没释放 阅读全文
posted @ 2022-10-30 17:31 呵哈呵 阅读(103) 评论(0) 推荐(0)