C、传统 C++ $+V{2k4X,
oX!s u
#include <assert.h> //设定插入点 $6ITa }o
#include <ctype.h> //字符处理 K Rm4r
#include <errno.h> //定义错误码 (3=. 3[
#include <float.h> //浮点数处理 [wIyW/+
#include <fstream.h> //文件输入/输出 >(d+E\!A
#include <iomanip.h> //参数化输入/输出 vhKeW(z
#include <iostream.h> //数据流输入/输出 l
^$$d8
#include <limits.h> //定义各种数据类型最值常量 &Sc0l/
#include <locale.h> //定义本地化函数 "T#c#?
#include <math.h> //定义数学函数 D~8f6Ko"m
#include <stdio.h> //定义输入/输出函数 ?Tb'J`MO
#include <stdlib.h> //定义杂项函数及内存分配函数 eN,m8A`/S
#include <string.h> //字符串处理
3nR|*t;
#include <strstrea.h> //基于数组的输入/输出 hLJO\=0rJz
#include <time.h> //定义关于时间的函数 ,>"1'i&@
#include <wchar.h> //宽字符处理及输入/输出 *4=Fy:R]O
#include <wctype.h> //宽字符分类 Vv6xVX
7r*>?]y+
////////////////////////////////////////////////////////////////////////// AF **@iG
ZtDHNL
标准 C++ (同上的不再注释) aJIj%Y$
OJ]{FI
#include <algorithm> //STL 通用算法 `p'L3u5H-
#include <bitset> //STL 位集容器 Y5Ey%Mm6
#include <cctype> ~hP[[?
#include <cerrno> <}.)kg${O
#include <clocale> dk;Ed
#include <cmath> AGOK%[[Ws
#include <complex> //复数类 )M^;6S
#include <cstdio> b]CJf8'u
#include <cstdlib> =a7m^e7
#include <cstring> aLhTaB-va
#include <ctime> o3}12i S
#include <deque> //STL 双端队列容器 `| R8WM
#include <exception> //异常处理类 &[JI L=m5
#include <fstream> b@5&<V;r2
#include <functional> //STL 定义运算函数(代替运算符) vJXd{iQE@C
#include <limits> L'z?M]
#include <list> //STL 线性列表容器 r}03&h~Hc&
#include <map> //STL 映射容器 QT^(
oog=
#include <iomanip> :tR%y"
#include <ios> //基本输入/输出支持 SLZv`
#include <iosfwd> //输入/输出系统使用的前置声明 vad" N
#include <iostream> <}B|4($
#include <istream> //基本输入流 {TUCa
#include <ostream> //基本输出流 0-FwHDxw
#include <queue> //STL 队列容器 iHQFieZ.E
#include <set> //STL 集合容器 I%{U~
#include <sstream> //基于字符串的流 h-!(O^M
#include <stack> //STL 堆栈容器 eYR/kZ%<
#include <stdexcept> //标准异常类 C:gE
#include <streambuf> //底层输入/输出支持 1&wZJP=
#include <string> //字符串类 0nhsjN}v
#include <utility> //STL 通用模板类 +$8hTi,
#include <vector> //STL 动态数组容器 5nf|CQH6?
#include <cwchar> 0@3g'TGl
#include <cwctype> -c|O!Lc-
@{t^8I#]
using namespace std; @RT yCr
r]8tl
////////////////////////////////////////////////////////////////////////// |(y6O5Y.
L\hPw{)
C99 增加 `1pri0!
)?Jj#HtW
#include <complex.h> //复数处理 1~Pht:,t
#include <fenv.h> //浮点环境 REFisH-
#include <inttypes.h> //整数格式转换 f\/};a
#include <stdbool.h> //布尔环境 7_q"%xH
#include <stdint.h> //整型环境 Uf_w
o
#include <tgmath.h> //通用类型数学宏