C、传统 C++ h?SUDk:2^
OU[Sm7B
#include <assert.h> //设定插入点 QTDI^ZeuF
#include <ctype.h> //字符处理 KSexG:Xb
#include <errno.h> //定义错误码 %>s y`c
#include <float.h> //浮点数处理 T|=8jt,
#include <fstream.h> //文件输入/输出 D4S>Pkv
#include <iomanip.h> //参数化输入/输出 \;sUJr"$
#include <iostream.h> //数据流输入/输出 xOt|j4
#include <limits.h> //定义各种数据类型最值常量 ^o{O5&i]
#include <locale.h> //定义本地化函数 Axcm~!uf
#include <math.h> //定义数学函数 K4
>d
#include <stdio.h> //定义输入/输出函数 lKa}Bcd
#include <stdlib.h> //定义杂项函数及内存分配函数 E0*81PS
#include <string.h> //字符串处理 7[K$os5al
#include <strstrea.h> //基于数组的输入/输出 rj6wKfz
#include <time.h> //定义关于时间的函数 _ '}UNIL
#include <wchar.h> //宽字符处理及输入/输出 [k.<x'#
#include <wctype.h> //宽字符分类 avT>0b:
:JOF!Q
////////////////////////////////////////////////////////////////////////// >Rr]e`3wG
P!-9cd1C,
标准 C++ (同上的不再注释) N".
af)5
uh GL1{
#include <algorithm> //STL 通用算法 }6o` in>M
#include <bitset> //STL 位集容器 {?
6]_J
#include <cctype> F&uU
,);
#include <cerrno> zIlQqyOQ8
#include <clocale> DQE.;0ld
#include <cmath> 6.k2,C4dT<
#include <complex> //复数类 /|>z7#?m^
#include <cstdio> H_jMl$f)j
#include <cstdlib> MN#\P1
#include <cstring> }3QEclZr
#include <ctime> 0uj3kr?cv
#include <deque> //STL 双端队列容器 C^uXJ~8
#include <exception> //异常处理类 K)&AR*Tc
#include <fstream> v_b%2;<1
#include <functional> //STL 定义运算函数(代替运算符) `"
#include <limits> =i `o+H
#include <list> //STL 线性列表容器 uv Z!3 UH.
#include <map> //STL 映射容器 j{nL33T%
#include <iomanip> }PoB`H'K5
#include <ios> //基本输入/输出支持 ] @IzJz"R
#include <iosfwd> //输入/输出系统使用的前置声明 Of-l<Ks\
#include <iostream> &'i>5Y
#include <istream> //基本输入流 1YQ|KJ*K
#include <ostream> //基本输出流 @C?RbTHy
#include <queue> //STL 队列容器 x|1OGbBK
#include <set> //STL 集合容器 MvQ0"-ZQ
#include <sstream> //基于字符串的流 g_-Y-.M
#include <stack> //STL 堆栈容器 $My%7S/3
#include <stdexcept> //标准异常类 QKe=/;
#include <streambuf> //底层输入/输出支持 hg |DpP
#include <string> //字符串类 N5o jXX!l%
#include <utility> //STL 通用模板类 `2}Mz9mk
#include <vector> //STL 动态数组容器 !hEtUF
#include <cwchar> 6=iz@C7r
#include <cwctype> *Z<`TB)<X
"*<9)vQ6|
using namespace std; 8I`>tY
Hh,q)(Wo
////////////////////////////////////////////////////////////////////////// EW|bs#l
>.0B%
C99 增加 F!'y47QD
y&UcTE2;%(
#include <complex.h> //复数处理 w8c71C
#include <fenv.h> //浮点环境 vDqmD{%4N
#include <inttypes.h> //整数格式转换 O*X]oX
#include <stdbool.h> //布尔环境 [Jwo,?w
#include <stdint.h> //整型环境 ,d$V-~2,
#include <tgmath.h> //通用类型数学宏