C、传统 C++ +x"uP
Ym6d'd<9(
#include <assert.h> //设定插入点 `t U
#include <ctype.h> //字符处理 SB\%"nnV
#include <errno.h> //定义错误码 3%Y:+%VE
#include <float.h> //浮点数处理 &$
h~Q
#include <fstream.h> //文件输入/输出 8?+|4:#=*J
#include <iomanip.h> //参数化输入/输出 y"JR kJ
#include <iostream.h> //数据流输入/输出 A;TP~xq\
#include <limits.h> //定义各种数据类型最值常量 A0DGDr PD
#include <locale.h> //定义本地化函数 OldOc5D
#include <math.h> //定义数学函数 TQ4@|S:OF
#include <stdio.h> //定义输入/输出函数 FO2e7p^Q
#include <stdlib.h> //定义杂项函数及内存分配函数 o
<q*3L5
#include <string.h> //字符串处理 sAkr-x?+M
#include <strstrea.h> //基于数组的输入/输出 !a@)6or
#include <time.h> //定义关于时间的函数 nYyhQX~]B
#include <wchar.h> //宽字符处理及输入/输出 9-ozrw8t
#include <wctype.h> //宽字符分类 K!-OUm5A
<gp?}Lk
////////////////////////////////////////////////////////////////////////// L!fTYX#K]
"}]$ag!`q$
标准 C++ (同上的不再注释) !
xCo{U=
I^?tF'E
#include <algorithm> //STL 通用算法 x)::^'74
#include <bitset> //STL 位集容器 c$g@3gL
#include <cctype> @?3f`l
9
#include <cerrno> y}odTeq
#include <clocale> +<7Oj s>o
#include <cmath> V%s
g+D2
#include <complex> //复数类 )%7P?^>
#include <cstdio> x|6]+?l@6
#include <cstdlib> 6CY&pbR
#include <cstring> "7B}hZ^)W
#include <ctime> `R[Hxi
#include <deque> //STL 双端队列容器 xe`^)2z
#include <exception> //异常处理类 ?E([Nc0T
#include <fstream> >@YefNX6
#include <functional> //STL 定义运算函数(代替运算符) _;1{feR_
#include <limits> ZwmucY%3
#include <list> //STL 线性列表容器 ||$&o!;/L
#include <map> //STL 映射容器 K;?D^n.
#include <iomanip> qlO}=b/
#include <ios> //基本输入/输出支持 un{ZysmtB6
#include <iosfwd> //输入/输出系统使用的前置声明 }s}g}t8v-
#include <iostream> fj_23{,/"g
#include <istream> //基本输入流 '0+*
#include <ostream> //基本输出流 QU).q65p
#include <queue> //STL 队列容器 4qQ,1&!]S
#include <set> //STL 集合容器 X]0>0=^
#include <sstream> //基于字符串的流 )[Y B&
#include <stack> //STL 堆栈容器 F-yY(b]$
#include <stdexcept> //标准异常类 aLO^>",
#include <streambuf> //底层输入/输出支持 4-(kk0]`z
#include <string> //字符串类 4DA34m(
#include <utility> //STL 通用模板类 XjX
#include <vector> //STL 动态数组容器 R?{+&r.X
#include <cwchar> $]v}X},,
#include <cwctype> ag=d6q
FwCb$yE#M
using namespace std; :KLXrr
`9~
%6N?7#
////////////////////////////////////////////////////////////////////////// GtA`0B
=6%oW2E\
C99 增加 OZ[ YB
G=zWhqieh
#include <complex.h> //复数处理 H];B?G';C
#include <fenv.h> //浮点环境 ^Co-!jM
#include <inttypes.h> //整数格式转换 OmYVJt_
#include <stdbool.h> //布尔环境 M([#Py9h
#include <stdint.h> //整型环境 xs$$fPAQ
#include <tgmath.h> //通用类型数学宏