设为首页 加入收藏

TOP

计算机二级辅导:标准库assert.h
2014-11-15 22:20:23 】 浏览:4659
Tags:计算机 二级 辅导 标准 assert.h

  打算趁留在学校的最后一段时间好好补习一下一直以来都忽略掉的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. So don't add a


  header guard. */


  #ifndef RC_INVOKED


  /* All the headers include this file. */


  #include <_mingw.h>


  #undef assert


  #ifdef __cplusplus


  extern "C" {


  #endif


  #ifdef NDEBUG


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇对C++中指针类型的研究 下一篇再谈Winsock网络编程入门

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目