公告 |
You are all my reasons!
桃李花林又一在
淫荡一日同风起,风骚直上九万里
仙子凌波微步罗衫飘忽十步一回头
我的最爱:网游,程序,文学
QQ:89636669
|
Blog信息 |
blog名称:一维空间 日志总数:163 评论数量:248 留言数量:33 访问次数:650810 建立时间:2007年10月24日 |

| |
[C++]C&C++头文件一览【转】
dskongenius 发表于 2008/4/13 20:03:19 |
转自http://hi.baidu.com/insun/blog/item/e532686315b67b610c33faab.html
C&C++头文件一览
2007-03-19 16:38
C、传统 C++
#include <assert.h> //设定插入点#include <ctype.h> //字符处理#include <errno.h> //定义错误码#include <float.h> //浮点数处理#include <fstream.h> //文件输入/输出#include <iomanip.h> //参数化输入/输出#include <iostream.h> //数据流输入/输出#include <limits.h> //定义各种数据类型最值常量#include <locale.h> //定义本地化函数#include <math.h> //定义数学函数#include <stdio.h> //定义输入/输出函数#include <stdlib.h> //定义杂项函数及内存分配函数#include <string.h> //字符串处理#include <strstrea.h> //基于数组的输入/输出#include <time.h> //定义关于时间的函数#include <wchar.h> //宽字符处理及输入/输出#include <wctype.h> //宽字符分类
//////////////////////////////////////////////////////////////////////////
标准 C++ (同上的不再注释)
#include <algorithm> //STL 通用算法#include <bitset> //STL 位集容器#include <cctype>#include <cerrno>#include <clocale>#include <cmath>#include <complex> //复数类#include <cstdio>#include <cstdlib>#include <cstring>#include <ctime>#include <deque> //STL 双端队列容器#include <exception> //异常处理类#include <fstream>#include <functional> //STL 定义运算函数(代替运算符)#include <limits>#include <list> //STL 线性列表容器#include <map> //STL 映射容器#include <iomanip>#include <ios> //基本输入/输出支持#include <iosfwd> //输入/输出系统使用的前置声明#include <iostream>#include <istream> //基本输入流#include <ostream> //基本输出流#include <queue> //STL 队列容器#include <set> //STL 集合容器#include <sstream> //基于字符串的流#include <stack> //STL 堆栈容器 #include <stdexcept> //标准异常类#include <streambuf> //底层输入/输出支持#include <string> //字符串类#include <utility> //STL 通用模板类#include <vector> //STL 动态数组容器#include <cwchar>#include <cwctype>
using namespace std;
//////////////////////////////////////////////////////////////////////////
C99 增加
#include <complex.h> //复数处理#include <fenv.h> //浮点环境#include <inttypes.h> //整数格式转换#include <stdbool.h> //布尔环境#include <stdint.h> //整型环境#include <tgmath.h> //通用类型数学宏
///////////////////// 不同的------------------------------2006-9-11-增加--------------
alloc.h 说明内存管理函数(分配、释放等)。assert.h 定义 assert调试宏。bios.h 说明调用IBM—PC ROM BIOS子程序的各个函数。conio.h 说明调用DOS控制台I/O子程序的各个函数。ctype.h 包含有关字符分类及转换的名类信息(如 isalpha和toascii等)。dir.h 包含有关目录和路径的结构、宏定义和函数。dos.h 定义和说明MSDOS和8086调用的一些常量和函数。erron.h 定义错误代码的助记符。fcntl.h 定义在与open库子程序连接时的符号常量。float.h 包含有关浮点运算的一些参数和函数。graphics.h 说明有关图形功能的各个函数,图形错误代码的常量定义,正对不同驱动程序的各种颜色值,及函数用到的一些特殊结构。io.h 包含低级I/O子程序的结构和说明。limit.h 包含各环境参数、编译时间限制、数的范围等信息。math.h 说明数学运算函数,还定了 HUGE VAL 宏, 说明了matherr和matherr子程序用到的特殊结构。mem.h ?? 说明一些内存操作函数(其中大多数也在STRING.H 中说明)。process.h 说明进程管理的各个函数,spawn…和EXEC …函数的结构说明。setjmp.h 定义longjmp和setjmp函数用到的jmp buf类型, 说明这两个函数。share.h 定义文件共享函数的参数。signal.h 定义SIG[ZZ(Z] [ZZ)]IGN和SIG[ZZ(Z] [ZZ)]DFL常量,说明rajse和signal两个函数。stdarg.h 定义读函数参数表的宏。(如vprintf,vscarf函数)。stddef.h 定义一些公共数据类型和宏。stdio.h 定义Kernighan和Ritchie在Unix System V 中定义的标准和扩展的类型和宏。还定义标准I/O 预定义流:stdin,stdout和stderr,说明 I/O流子程序。stdlib.h 说明一些常用的子程序:转换子程序、搜索/ 排序子程序等。string.h 说明一些串操作和内存操作函数。sys\stat.h 定义在打开和创建文件时用到的一些符号常量。sys\types.h 说明ftime函数和timeb结构。sys\time.h 定义时间的类型time[ZZ(Z] [ZZ)]t。time.h 定义时间转换子程序asctime、localtime和gmtime的结构,ctime、 difftime、 gmtime、 localtime和stime用到的类型,并提供这些函数的原型。value.h 定义一些重要常量, 包括依赖于机器硬件的和为与Unix System V相兼容而说明的一些常量,包括浮点和双精度值的范围。
阅读全文(1655) | 回复(0) | 编辑 | 精华
|
|