摘要: 这里用一个简单的宏来演示: #define SAFE_DELETE(p) do{ delete p; p = NULL} while(0) 假设这里去掉do...while(0), #define SAFE_DELETE(p) delete p; p = NULL; 那么以下代码: if(NULL 阅读全文
posted @ 2021-08-23 14:49 suwenyuan 阅读(206) 评论(0) 推荐(0) 编辑