C/C++头文件一览—转

 1 #include<assert.h>    //设定插入点
 2 #include <ctype.h>     //字符处理
 3 #include <errno.h>     //定义错误码
 4 #include <float.h>     //浮点数处理
 5 #include <fstream.h>   //文件输入/输出
 6 #include <iomanip.h>   //参数化输入/输出
 7 #include<iostream.h>   //数据流输入/输出
 8 #include<limits.h>     //定义各种数据类型最值常量
 9 #include<locale.h>     //定义本地化函数
10 #include <math.h>     //定义数学函数
11 #include <stdio.h>     //定义输入/输出函数
12 #include<stdlib.h>     //定义杂项函数及内存分配函数
13 #include <string.h>    //字符串处理
14 #include<strstrea.h>   //基于数组的输入/输出
15 #include<time.h>     //定义关于时间的函数
16 #include <wchar.h>    //宽字符处理及输入/输出
17 #include <wctype.h>    //宽字符分类

标准 C++ (同上的不再注释)

 1 #include <algorithm>    //STL通用算法
 2 #include <bitset>     //STL位集容器
 3 #include <cctype>
 4 #include <cerrno>
 5 #include <clocale>
 6 #include <cmath>
 7 #include <complex>     //复数类
 8 #include <cstdio>
 9 #include <cstdlib>
10 #include <cstring>
11 #include <ctime>
12 #include <deque>      //STL双端队列容器
13 #include <exception>    //异常处理类
14 #include <fstream>
15 #include <functional>   //STL定义运算函数(代替运算符)
16 #include <limits>
17 #include <list>      //STL线性列表容器
18 #include <map>       //STL 映射容器
19 #include <iomanip>
20 #include <ios>      //基本输入/输出支持
21 #include<iosfwd>     //输入/输出系统使用的前置声明
22 #include <iostream>
23 #include <istream>     //基本输入流
24 #include <ostream>     //基本输出流
25 #include <queue>      //STL队列容器
26 #include <set>       //STL 集合容器
27 #include <sstream>    //基于字符串的流
28 #include <stack>      //STL堆栈容器    
29 #include <stdexcept>    //标准异常类
30 #include <streambuf>   //底层输入/输出支持
31 #include <string>     //字符串类
32 #include <utility>     //STL通用模板类
33 #include <vector>     //STL动态数组容器
34 #include <cwchar>
35 #include <cwctype>
36 
37 using namespace std;

C99 增加

#include <complex.h>  //复数处理
#include <fenv.h>    //浮点环境
#include <inttypes.h>  //整数格式转换
#include <stdbool.h>   //布尔环境
#include <stdint.h>   //整型环境
#include<tgmath.h>   //通用类型数学宏

 

posted @ 2012-07-27 14:48  戊辰岁终  阅读(116)  评论(0编辑  收藏  举报