计算机二级辅导:标准库assert.h计算机等级考试
文章作者 100test 发表时间 2010:01:04 18:00:13
来源 100Test.Com百考试题网
打算趁留在学校的最后一段时间好好补习一下一直以来都忽略掉的C/C 标准库,大概就是以头文件为单位了。以一个最简单的头文件入手,然后逐渐展开来……第一个头文件当然非assert.h莫属了。这个范例是i386-pc-mingw32中的GCC 4.5.0下包含的。
view sourceprint?/*
* assert.h
* This file has no copyright assigned and is placed in the Public Domain.
* This file is a part of the mingw-runtime package.
* No warranty is given. refer to the file DISCLAIMER within the package.
*
* Define the assert macro for debug output.
*
*/
/* We should be able to include this file multiple times to allow the assert
macro to be enabled/disabled for different parts of code.