c++之<assert.h>头文件的用法

来源:互联网 发布:关闭139和445端口 编辑:程序博客网 时间:2024/06/06 09:01
只是用于警告

assert(itemptr != NULL);

这就是说 itemptr ==NULL时会写出警告信息
 
在DEBUG下有效  在Release下被忽略
0 0