C、传统 C++ J"MJVMo$T
1hWz%c|
#include <assert.h> //设定插入点 4{g|$@s(
#include <ctype.h> //字符处理 iE`aGoA
#include <errno.h> //定义错误码 l :"*]m7o_
#include <float.h> //浮点数处理 A&'%ou
#include <fstream.h> //文件输入/输出 &O,$l3 P
#include <iomanip.h> //参数化输入/输出 yw<xv-Q=i
#include <iostream.h> //数据流输入/输出 D=vq<X'
#include <limits.h> //定义各种数据类型最值常量 -tdG}Gu
#include <locale.h> //定义本地化函数 wp*1HnWj8Y
#include <math.h> //定义数学函数 tK
H!xit
#include <stdio.h> //定义输入/输出函数 6KG 63`aQ
#include <stdlib.h> //定义杂项函数及内存分配函数 WGx>{'LJ
#include <string.h> //字符串处理 y|se^dn
#include <strstrea.h> //基于数组的输入/输出 %R>S"
#include <time.h> //定义关于时间的函数 (ce NVo&
#include <wchar.h> //宽字符处理及输入/输出 DeSTo9A}!
#include <wctype.h> //宽字符分类 pAuwSn#i
5XHkRcESZ
////////////////////////////////////////////////////////////////////////// 1%`:8
Y ckbc6F
标准 C++ (同上的不再注释) L /> GYx
POXn6R!mM1
#include <algorithm> //STL 通用算法 h6N}sLM{0
#include <bitset> //STL 位集容器 z;fSd
#include <cctype> LH;G:
#include <cerrno> ^ym{DSx
#include <clocale> WV
U9NmvE
#include <cmath> 1n"X?K5;A
#include <complex> //复数类 &L]*]Xz;
#include <cstdio> 7p$*/5fk
#include <cstdlib> EYG E#C;
d
#include <cstring> M(uB
;Te
#include <ctime> 9 a%@j
]
#include <deque> //STL 双端队列容器 $O8V!R*
#include <exception> //异常处理类 <UdD@(iZ#
#include <fstream> ~S!kn1&O
#include <functional> //STL 定义运算函数(代替运算符) `qz5rPyZ
#include <limits> 1_C6KS
#include <list> //STL 线性列表容器 ]:s|.C%q I
#include <map> //STL 映射容器 NN'<-0~
#include <iomanip> auW]rwY
#include <ios> //基本输入/输出支持 O$/swwB!
#include <iosfwd> //输入/输出系统使用的前置声明 Q%2Lyt"(
#include <iostream> z:5ROlk0
#include <istream> //基本输入流 X~3P?O]kFv
#include <ostream> //基本输出流 "n,ZP@M;
#include <queue> //STL 队列容器 Wp3l>:
#include <set> //STL 集合容器 SGd.z6"H
#include <sstream> //基于字符串的流 m!g8@YI
#include <stack> //STL 堆栈容器 J|24I4
#include <stdexcept> //标准异常类 jt--w"|-r
#include <streambuf> //底层输入/输出支持 -RQQ|:O$
#include <string> //字符串类 P;LZ!I
#include <utility> //STL 通用模板类 MA#!<b('
#include <vector> //STL 动态数组容器 sLp
LY1X
#include <cwchar> rC `s;w
#include <cwctype> p9WskYpm
vh8Kd' y
using namespace std; h_yR$H&tX
S(h*\we
////////////////////////////////////////////////////////////////////////// eE%yo3
_|:bac8pL
C99 增加 H>iZVE
nV*sdSt
#include <complex.h> //复数处理 iQC&d_#
#include <fenv.h> //浮点环境 *8H;KGe=
#include <inttypes.h> //整数格式转换 #!,`EU
#include <stdbool.h> //布尔环境 p|V1Gh<
#include <stdint.h> //整型环境 ZMg9Qt
#include <tgmath.h> //通用类型数学宏