C、传统 C++ w&eX)!
zFy0SzF
#include <assert.h> //设定插入点 (p2jigP7a[
#include <ctype.h> //字符处理 s3+^q
#include <errno.h> //定义错误码 ,\y)k}0lH
#include <float.h> //浮点数处理 TG\3T%gH/s
#include <fstream.h> //文件输入/输出 2]Nc@wX`p
#include <iomanip.h> //参数化输入/输出 ]]\\Y|0
#include <iostream.h> //数据流输入/输出 gK {-eS
#include <limits.h> //定义各种数据类型最值常量 nATEv2:G
#include <locale.h> //定义本地化函数 9sQ4
$
#include <math.h> //定义数学函数 2|xNT9RW
#include <stdio.h> //定义输入/输出函数 }H[v!l@
#include <stdlib.h> //定义杂项函数及内存分配函数 UN7>c0B
#include <string.h> //字符串处理 1gEeZ\B-&
#include <strstrea.h> //基于数组的输入/输出 TA=VfA B
#include <time.h> //定义关于时间的函数 +Ar=89
#include <wchar.h> //宽字符处理及输入/输出 eIEr\X4\~~
#include <wctype.h> //宽字符分类 ?0>%
a$`
3cuVyf<v
//////////////////////////////////////////////////////////////////////////
iw!kV
YQb43Sh`
标准 C++ (同上的不再注释) VTOZ#*f
kW"6Gc&HUN
#include <algorithm> //STL 通用算法 9%>GOY
#include <bitset> //STL 位集容器 P8lx\DA
#include <cctype> Byx8`Cx1
#include <cerrno> y\]~S2}G
#include <clocale> oe<9CK:?>
#include <cmath> 6I0G.N
#include <complex> //复数类 0Q^a*7w`8a
#include <cstdio> ?lg
#include <cstdlib> r=Up-(j
#include <cstring> N=e-"8
#include <ctime> O?<R.W<QI
#include <deque> //STL 双端队列容器 !"w1Pv,
#include <exception> //异常处理类 C-Q]f
#include <fstream> gxry?':
#include <functional> //STL 定义运算函数(代替运算符) Q;]g9T[)
#include <limits> tDF=Iqu)a
#include <list> //STL 线性列表容器 6%/@b`vZ
#include <map> //STL 映射容器 mJBvhK9%
#include <iomanip> a2l\B ~n
#include <ios> //基本输入/输出支持 1'qllkT
#include <iosfwd> //输入/输出系统使用的前置声明 1Ner1EKGp
#include <iostream> 9>y6zFTV
#include <istream> //基本输入流 S GAu.8Js
#include <ostream> //基本输出流 Ba=P
#include <queue> //STL 队列容器 E'|@hL-jn
#include <set> //STL 集合容器 T~shJ0%
#include <sstream> //基于字符串的流 4CR.=
#include <stack> //STL 堆栈容器 V2< 4~J2:9
#include <stdexcept> //标准异常类 Qqt<
#include <streambuf> //底层输入/输出支持 Tk[`kmb
#include <string> //字符串类 ( Z-~Eh
#include <utility> //STL 通用模板类 wB(A['k
#include <vector> //STL 动态数组容器 >Ux5UD
#include <cwchar> $O}:*.{(W
#include <cwctype> h?f)Bt}ry
eGZ{%\PH<
using namespace std; Ey5E1$w%&
![ &
go
////////////////////////////////////////////////////////////////////////// R)s@2S
m2!y;)F0
C99 增加 y#[PQT
`^t0379e
#include <complex.h> //复数处理 yqdhLX|Mk
#include <fenv.h> //浮点环境 7x
*]
#include <inttypes.h> //整数格式转换 ; Drt4fOxX
#include <stdbool.h> //布尔环境 "xS?#^a
#include <stdint.h> //整型环境 ifA{E}fRZP
#include <tgmath.h> //通用类型数学宏