C、传统 C++ M1^pf<!s
?
3Td>x
#include <assert.h> //设定插入点 =98@MX%P
#include <ctype.h> //字符处理 @#;2P'KL
#include <errno.h> //定义错误码 D >$9(
#include <float.h> //浮点数处理 G 7b>r
#include <fstream.h> //文件输入/输出 R0vWj9nPh
#include <iomanip.h> //参数化输入/输出 UH2fP G
#include <iostream.h> //数据流输入/输出 pwr,rAJ}$j
#include <limits.h> //定义各种数据类型最值常量 ~m'PAC"Q$
#include <locale.h> //定义本地化函数 #A+ dj|
b
#include <math.h> //定义数学函数 e2~&I`ct
#include <stdio.h> //定义输入/输出函数 h{#Hwp
#include <stdlib.h> //定义杂项函数及内存分配函数 yalT6
#include <string.h> //字符串处理 _46
y
#include <strstrea.h> //基于数组的输入/输出 Dm2&}{&K
#include <time.h> //定义关于时间的函数 [jU.58*
#include <wchar.h> //宽字符处理及输入/输出 [_q3 02
#include <wctype.h> //宽字符分类 \b6H4aQii
:+06M@
////////////////////////////////////////////////////////////////////////// Bu$Z+o
i|2CZ
标准 C++ (同上的不再注释) 5o- WA1
lcO;3CrJ!
#include <algorithm> //STL 通用算法 }f45>@uMW
#include <bitset> //STL 位集容器 hj[&.w
#include <cctype> ;W 16Hr Z
#include <cerrno> ,ELbm
#include <clocale> |1!RvW:[!
#include <cmath> zg>4/10P1q
#include <complex> //复数类 ky R=U`OW
#include <cstdio> Qu]F<H*Y|
#include <cstdlib> gqw
]L>Z
#include <cstring> iW oe
#include <ctime> NpqK+GO
#include <deque> //STL 双端队列容器 re[v}cB
#include <exception> //异常处理类 D[#6jJAb
#include <fstream> d^pzMaCI
#include <functional> //STL 定义运算函数(代替运算符) 0q}k"(9
#include <limits> &RF*pU>
#include <list> //STL 线性列表容器 <9Sg,ix't
#include <map> //STL 映射容器 U}hQVpP#
#include <iomanip> -aSj-
#include <ios> //基本输入/输出支持 M4rI]^lJ
#include <iosfwd> //输入/输出系统使用的前置声明 @?bO@
#include <iostream> q#pD}Xe$
#include <istream> //基本输入流 #ATV#/hW
#include <ostream> //基本输出流 u]`ur#_
#include <queue> //STL 队列容器 u?xXZ]_u-
#include <set> //STL 集合容器 Lfr>y_i;F
#include <sstream> //基于字符串的流 8>4@g!9E
#include <stack> //STL 堆栈容器 >/J!:Htk+K
#include <stdexcept> //标准异常类 ;cpQ[+$nKp
#include <streambuf> //底层输入/输出支持 Wks?9)Is
#include <string> //字符串类
LeEv']
#include <utility> //STL 通用模板类 .0=VQU
#include <vector> //STL 动态数组容器 VelR8tjP
#include <cwchar> SobOUly5{
#include <cwctype> Cr&,*lUo
$- 4 Zi
using namespace std; jt5:rWB
w%' 8bH!
////////////////////////////////////////////////////////////////////////// x b6X8:
DWXxB
C99 增加 lX)ZQY:= :
0cF+4,5
#include <complex.h> //复数处理 /l6r4aO2=
#include <fenv.h> //浮点环境 ;:Kd?Tz$
#include <inttypes.h> //整数格式转换 x9Oo.[
#include <stdbool.h> //布尔环境 J}?:\y<
#include <stdint.h> //整型环境 P,RdYM06
#include <tgmath.h> //通用类型数学宏