C、传统 C++ r+W;}nyf
r .`&z
#include <assert.h> //设定插入点 Nf^6t1se
#include <ctype.h> //字符处理 1)BIh~1{p
#include <errno.h> //定义错误码 N|3a(mtiZ'
#include <float.h> //浮点数处理 DUMC4+i
#include <fstream.h> //文件输入/输出 W}iDT?Qi
#include <iomanip.h> //参数化输入/输出 ul&}'jBr
#include <iostream.h> //数据流输入/输出 cD5N'3
#include <limits.h> //定义各种数据类型最值常量 ev[!:*6P
#include <locale.h> //定义本地化函数 mb?r{WCi
#include <math.h> //定义数学函数 `gSJEq
#include <stdio.h> //定义输入/输出函数 2)\gIMt%
#include <stdlib.h> //定义杂项函数及内存分配函数 u$Wv*;TT%
#include <string.h> //字符串处理 sLOkLz"x
#include <strstrea.h> //基于数组的输入/输出 ?Z2_y-
#include <time.h> //定义关于时间的函数 cl{kCSZo.z
#include <wchar.h> //宽字符处理及输入/输出 +UX~TT:
#include <wctype.h> //宽字符分类 Htm;N2$d
qCI0[U@
////////////////////////////////////////////////////////////////////////// #ULzh&yO
b(Nxk2uv
标准 C++ (同上的不再注释) 1Xkl.FcFw
g/W&Ap;qVL
#include <algorithm> //STL 通用算法 Da)H/3ii
#include <bitset> //STL 位集容器 n.b_fkZNr
#include <cctype> Fp(-&,L0fc
#include <cerrno> zLSha\X
#include <clocale> ~j36(`t
#include <cmath> m5%E1k$=
#include <complex> //复数类 TNF+yj-|X:
#include <cstdio> ,R7RXpP7t
#include <cstdlib> l,k.Jo5
#include <cstring> aE2Yl
#include <ctime> M!b-;{;'
#include <deque> //STL 双端队列容器 W5(.Hub}
#include <exception> //异常处理类 m0,TH[HWGF
#include <fstream> ~(-df>
#include <functional> //STL 定义运算函数(代替运算符) mum4Uj
#include <limits> cq4sgQ?sW
#include <list> //STL 线性列表容器 G<FB:?|
#include <map> //STL 映射容器 YfUo=ku
#include <iomanip> ZPlY]e
#include <ios> //基本输入/输出支持 vm.%)F#@
#include <iosfwd> //输入/输出系统使用的前置声明 ehV}}1>O
#include <iostream> {O_`eS
#include <istream> //基本输入流 i{7Vh0n3S-
#include <ostream> //基本输出流 j-k]|0ea}
#include <queue> //STL 队列容器 S^7u`-
#include <set> //STL 集合容器 303x|y
#include <sstream> //基于字符串的流 wqF_hs(O
#include <stack> //STL 堆栈容器 ~0YRWM ;
#include <stdexcept> //标准异常类 `OHdo$Y9
#include <streambuf> //底层输入/输出支持 )5ev4Qf
#include <string> //字符串类
<y<
#include <utility> //STL 通用模板类 ja%IGaH;s
#include <vector> //STL 动态数组容器 2Xqa?ay0>
#include <cwchar> 3RP\w~?
#include <cwctype> z]R% A:6K
@0D
using namespace std; s(r1q$5
n*m"yp
////////////////////////////////////////////////////////////////////////// i{}Q5iy
2SXy)m
!
C99 增加 Gxw>.O){
4p&YhV7j)o
#include <complex.h> //复数处理 t]XF*fZH
#include <fenv.h> //浮点环境 8S@"6TG`
#include <inttypes.h> //整数格式转换 )E}eK-Yu
#include <stdbool.h> //布尔环境 la_FZ
#include <stdint.h> //整型环境 X8 x:/]/0
#include <tgmath.h> //通用类型数学宏