C、传统 C++ _<F)G,=
V)>?[
#include <assert.h> //设定插入点 ;x/eb g
#include <ctype.h> //字符处理 Pa{
#include <errno.h> //定义错误码 f(Of+>
#include <float.h> //浮点数处理 '1gfXC
#include <fstream.h> //文件输入/输出 N8dxgh!,
#include <iomanip.h> //参数化输入/输出 ?l^Xauk4Pj
#include <iostream.h> //数据流输入/输出 %ERcFI]G
#include <limits.h> //定义各种数据类型最值常量 ;: 2U}p^-
#include <locale.h> //定义本地化函数 kY~4AH
#include <math.h> //定义数学函数 j/*1zu8Y
#include <stdio.h> //定义输入/输出函数 *b.
>
#include <stdlib.h> //定义杂项函数及内存分配函数 nJ2x;';lA
#include <string.h> //字符串处理 '6 F-%
#include <strstrea.h> //基于数组的输入/输出 =x\`yxsG
#include <time.h> //定义关于时间的函数 7*{f*({
#include <wchar.h> //宽字符处理及输入/输出 L!If~6oD(
#include <wctype.h> //宽字符分类 ZhA_d#qH
sjg`4^!wDD
////////////////////////////////////////////////////////////////////////// |
:-i[G?n
F`QViZ'n>#
标准 C++ (同上的不再注释) nOGTeKjEJ
jRS{7rx%MH
#include <algorithm> //STL 通用算法 `Zm6e!dH-
#include <bitset> //STL 位集容器 1^}I?PbqV
#include <cctype> ^U*y*l$
#include <cerrno> *(?Wzanh
#include <clocale> Szgo@x$^
#include <cmath> wwB3m&
#include <complex> //复数类 Lz'VQO1U=
#include <cstdio> *7jz(iX
#include <cstdlib> 0B]q /G(
#include <cstring> +y?Ilkk;j
#include <ctime> Z,.Hz\y1D
#include <deque> //STL 双端队列容器 Yg^ &4ZF
#include <exception> //异常处理类 Y#ZgrziYM
#include <fstream> [7FG;}lB-
#include <functional> //STL 定义运算函数(代替运算符) \:WWrY8&
#include <limits> qJrT
#include <list> //STL 线性列表容器 c>B1cR
#include <map> //STL 映射容器 :x*)o+
#include <iomanip> T`ibulp
#include <ios> //基本输入/输出支持 "0P`=n
#include <iosfwd> //输入/输出系统使用的前置声明 20|`jxp
#include <iostream> \xkKgI/
#include <istream> //基本输入流 -Lh7!d
#include <ostream> //基本输出流 3N2dV6u
#include <queue> //STL 队列容器 ;/j2(O^
#include <set> //STL 集合容器 >CqzC8JF
#include <sstream> //基于字符串的流 E[]5Od5#
#include <stack> //STL 堆栈容器 No'?8 +i
#include <stdexcept> //标准异常类 ecghY=%
#include <streambuf> //底层输入/输出支持 Hsf::K x
#include <string> //字符串类 _5jT}I<k
#include <utility> //STL 通用模板类 E^axLp>(I
#include <vector> //STL 动态数组容器 8Y?M:^f~
#include <cwchar> >1Z"5F7=
#include <cwctype> 'rcqy1-&
v3I^81
using namespace std; \!-BR0+y;
"+F'WCJ-(*
////////////////////////////////////////////////////////////////////////// y>P+"Z.K%}
$oK&k}Q
C99 增加 *|fF;-#v
+(3_V$|Dv
#include <complex.h> //复数处理 ^Co$X+
#include <fenv.h> //浮点环境 >X*tMhcb
#include <inttypes.h> //整数格式转换 7MKX`S
#include <stdbool.h> //布尔环境 KUAzJ[>
#include <stdint.h> //整型环境 Q5+1'mzAB
#include <tgmath.h> //通用类型数学宏