1、需要添加的头文件:
#include <assert.h>
2、注意点,若要取消断言,则在#include <assert.h>上定义宏 #define NDEBUG
assert(condition);
0:产生断言
其他:正常略过
C语言库函数---assert
猜你喜欢
转载自blog.csdn.net/qq_23929673/article/details/95607926
今日推荐
周排行