C、传统 C++ J.;!l
+ Vv+<M
#include <assert.h> //设定插入点 GFGW'}w-
#include <ctype.h> //字符处理 Xwp6]lx
#include <errno.h> //定义错误码 mH.c`*
#include <float.h> //浮点数处理 wqxChTbs
#include <fstream.h> //文件输入/输出 TWSqn'<E
#include <iomanip.h> //参数化输入/输出 cMs8D
#include <iostream.h> //数据流输入/输出 ygK@\JHn
#include <limits.h> //定义各种数据类型最值常量 'p FK+j
#include <locale.h> //定义本地化函数 :+_uyp2V
#include <math.h> //定义数学函数 E] 6]c!2:
#include <stdio.h> //定义输入/输出函数 jOUM+QO
#include <stdlib.h> //定义杂项函数及内存分配函数 F(O"S@
#include <string.h> //字符串处理 -kF8ZF
#include <strstrea.h> //基于数组的输入/输出 h*
72 f/#
#include <time.h> //定义关于时间的函数 ^>Vl@cW0uz
#include <wchar.h> //宽字符处理及输入/输出 ?e{hidg
#include <wctype.h> //宽字符分类 $E/N
}~NM\rm
////////////////////////////////////////////////////////////////////////// C5Vlqc;
d`gKF
标准 C++ (同上的不再注释) V15/~
^(kmF UV,Z
#include <algorithm> //STL 通用算法 w#v-h3XcF
#include <bitset> //STL 位集容器 ?K\r-J!Y
#include <cctype> ZH)Jq^^RI
#include <cerrno> ^HhV?Iqg
#include <clocale> lvAKL>qX
#include <cmath> E3LEeXcLS
#include <complex> //复数类 ;n q"jm
#include <cstdio> bvW3[ V
#include <cstdlib> ,(i`gH{D
#include <cstring> T)MX]T
#include <ctime> {S@gjMuN
#include <deque> //STL 双端队列容器 6E@TcN~,!
#include <exception> //异常处理类 A$g'/QM
#include <fstream> Sx:JuK@
#include <functional> //STL 定义运算函数(代替运算符) `+h+X9
#include <limits> L35]'Jua
#include <list> //STL 线性列表容器 enGZb&
#include <map> //STL 映射容器 ~9y/MR
#include <iomanip> 9!_JV;2
#include <ios> //基本输入/输出支持 |(<A)C
#include <iosfwd> //输入/输出系统使用的前置声明 vA"LV+@
#include <iostream> ."Kp6s `k
#include <istream> //基本输入流 .wV-g:2
#include <ostream> //基本输出流 ?o1QjDG
#include <queue> //STL 队列容器 b_&:tE--]
#include <set> //STL 集合容器 :}UjX|D
#include <sstream> //基于字符串的流 b*(,W
#include <stack> //STL 堆栈容器 p;qFMzyS9
#include <stdexcept> //标准异常类 <a&w$Zc/
#include <streambuf> //底层输入/输出支持 @;G%7&ps
#include <string> //字符串类 :d6]rOpX
#include <utility> //STL 通用模板类 \kZ@2.pN
#include <vector> //STL 动态数组容器 ;m=k
FZ?
#include <cwchar> An_3DrUFV_
#include <cwctype> H|S hi /
"S+AkLe(
using namespace std; i#NtiZ.t=
bE,#,
////////////////////////////////////////////////////////////////////////// :N!s@6
]VR79l
C99 增加 cA+T-A]
[!C!R$AMa
#include <complex.h> //复数处理 |No9eZ8>.
#include <fenv.h> //浮点环境 _?]W%R|
#include <inttypes.h> //整数格式转换 9n49p?
#include <stdbool.h> //布尔环境 L&KL]n
#include <stdint.h> //整型环境 P2&0bNY
#include <tgmath.h> //通用类型数学宏