C、传统 C++ :.IVf Zw
%_!YonRY|X
#include <assert.h> //设定插入点 SAt{At
#include <ctype.h> //字符处理 S&% GB
#include <errno.h> //定义错误码 %klC&
_g~_
#include <float.h> //浮点数处理 mh"&KX86W
#include <fstream.h> //文件输入/输出 lmZSsx
#include <iomanip.h> //参数化输入/输出 Wej 8YF@
#include <iostream.h> //数据流输入/输出 T,,,+gPx
#include <limits.h> //定义各种数据类型最值常量 gD0 FRKn
#include <locale.h> //定义本地化函数 x-km)2x=W
#include <math.h> //定义数学函数 ;aip1Df
#include <stdio.h> //定义输入/输出函数 kckWBL
#include <stdlib.h> //定义杂项函数及内存分配函数 '@h5j6:2
#include <string.h> //字符串处理 YAqv:
#include <strstrea.h> //基于数组的输入/输出 gh3XC.&
#include <time.h> //定义关于时间的函数 3EN?{T<yf
#include <wchar.h> //宽字符处理及输入/输出 ^|?/
y=
#include <wctype.h> //宽字符分类 vl<W`)'
i*' 6"
////////////////////////////////////////////////////////////////////////// V_?5 cwZ
:;S]jNy}j)
标准 C++ (同上的不再注释) $UAmUQg)}_
e`fN+
#include <algorithm> //STL 通用算法 LoQm&3/
#include <bitset> //STL 位集容器 N246RV1W
#include <cctype> xZ }1dq8
#include <cerrno> vl8Ums} +
#include <clocale> SNB>
#include <cmath> yT<yy>J9l#
#include <complex> //复数类 18 pi3i[
#include <cstdio> q/[)Z
@&(
#include <cstdlib> QXnL(z
#include <cstring> 6u`E{$
#include <ctime> EM+#h'%-
#include <deque> //STL 双端队列容器 L<encPJt
#include <exception> //异常处理类 cTpAU9|(
#include <fstream> =l
TV2C<
#include <functional> //STL 定义运算函数(代替运算符) "MD
#include <limits> UUGwXq96i
#include <list> //STL 线性列表容器 sXdNlR&
#include <map> //STL 映射容器 \e64Us>"x
#include <iomanip> 445}Yw5;9
#include <ios> //基本输入/输出支持 =#||&1U$
#include <iosfwd> //输入/输出系统使用的前置声明 Q<.847 )
#include <iostream> b/:&iG;
#include <istream> //基本输入流 U)%gzXTZ%
#include <ostream> //基本输出流 x'OE},>i
#include <queue> //STL 队列容器 s_A<bW566F
#include <set> //STL 集合容器 /(Se:jH$>
#include <sstream> //基于字符串的流 %]Gm
#include <stack> //STL 堆栈容器 wiXdb[[#
#include <stdexcept> //标准异常类 8_6\>hW&
#include <streambuf> //底层输入/输出支持 e#MEDjm/)g
#include <string> //字符串类 lL.3$Rp;
#include <utility> //STL 通用模板类 {k=H5<FV
#include <vector> //STL 动态数组容器 p}%T`e=Z9
#include <cwchar> 01VEz
8[\
#include <cwctype> hiWfVz{~
E(F<shT#
using namespace std; y#Je%tAe
2
h0ufl.N_%
////////////////////////////////////////////////////////////////////////// *6oQW
5T)qn`%
C99 增加 y -j3d)T
O)78
iEXi|
#include <complex.h> //复数处理 kYBy\
#include <fenv.h> //浮点环境 t(YrF,
#include <inttypes.h> //整数格式转换 qi7(RL_N
#include <stdbool.h> //布尔环境 ^W|B Xxo
#include <stdint.h> //整型环境 og<mFbqkq7
#include <tgmath.h> //通用类型数学宏