传统 C++ <assert.h> --------------------- 设定插入点 <ctype.h> --------------------- 字符处理 <errno.h> --------------------- 定义错误码 <float.h> --------------------- 浮点数处理 <fstream.h> --------------------- 文件输入/输出 <iomanip.h> --------------------- 参数化输入/输出 <iostream.h> --------------------- 数据流输入/输出 <limits.h> --------------------- 定义各种数据类型最值常量 <locale.h> --------------------- 定义本地化函数 <math.h> --------------------- 定义数学函数 <stdio.h> --------------------- 定义输入/输出函数 <stdlib.h> --------------------- 定义杂项函数及内存分配函数 <string.h> --------------------- 字符串处理 <strstrea.h> --------------------- 基于数组的输入/输出 <time.h> --------------------- 定义关于时间的函数 <wchar.h> --------------------- 宽字符处理及输入/输出 <wctype.h> --------------------- 宽字符分类 标准 C++ <algorithm> --------------------- STL 通用算法 <bitset> --------------------- STL 位集容器 <cctype> --------------------- 字符处理 <cerrno> --------------------- 定义错误码 <clocale> --------------------- 定义本地化函数 <cmath> --------------------- 定义数学函数 <complex> --------------------- 复数类 <cstdio> --------------------- 定义输入/输出函数 <cstdlib> --------------------- 定义杂项函数及内存分配函数 <cstring> --------------------- 字符串处理 <ctime> --------------------- 定义关于时间的函数 <cwchar> --------------------- 宽字符处理及输入/输出 <cwctype> --------------------- 宽字符分类 <deque> --------------------- STL 双端队列容器 <exception> --------------------- 异常处理类 <fstream> --------------------- 文件输入/输出 <functional> --------------------- STL 定义运算函数(代替运算符) <iomanip> --------------------- 参数化输入/输出 <iosfwd> --------------------- 输入/输出系统使用的前置声明 <iostream> --------------------- 数据流输入/输出 <ios> --------------------- 基本输入/输出支持 <istream> --------------------- 基本输入流 <limits> --------------------- 定义各种数据类型最值常量 <list> --------------------- STL 线性列表容器 <map> --------------------- STL 映射容器 <ostream> --------------------- 基本输出流 <queue> --------------------- STL 队列容器 <set> --------------------- STL 集合容器 <sstream> --------------------- 基于字符串的流 <stack> --------------------- STL 堆栈容器 <stdexcept> --------------------- 标准异常类 <streambuf> --------------------- 底层输入/输出支持 <string> --------------------- 字符串类 <utility> --------------------- STL 通用模板类 <vector> --------------------- STL 动态数组容器 using namespace std; C99 增加 <complex.h> --------------------- 复数处理 <fenv.h> --------------------- 浮点环境 <inttypes.h> --------------------- 整数格式转换 <stdbool.h> --------------------- 布尔环境 <stdint.h> --------------------- 整型环境 <tgmath.h> --------------------- 通用类型数学宏