C、传统 C++ ^|GtO.
9r nk\`E
#include <assert.h> //设定插入点 5ek%d
#include <ctype.h> //字符处理 `b ")Bx|
#include <errno.h> //定义错误码 4E-A@FR
#include <float.h> //浮点数处理 $p3Wjf:bH
#include <fstream.h> //文件输入/输出 0@K:Tq-mF
#include <iomanip.h> //参数化输入/输出 P"h\7V,d%
#include <iostream.h> //数据流输入/输出 CQHp4_
#include <limits.h> //定义各种数据类型最值常量 (oitCIV
#include <locale.h> //定义本地化函数 n&m?BuG
#include <math.h> //定义数学函数 ^:!(jiH
#include <stdio.h> //定义输入/输出函数 Hu9R.[u
#include <stdlib.h> //定义杂项函数及内存分配函数 <
}wAP_y
#include <string.h> //字符串处理 $SzCVWS
#include <strstrea.h> //基于数组的输入/输出 @k+G
Cf
#include <time.h> //定义关于时间的函数 zQ5jx5B":
#include <wchar.h> //宽字符处理及输入/输出 %<C
G|]W
#include <wctype.h> //宽字符分类 Gr"7w[|+
NhK(HTsvK
////////////////////////////////////////////////////////////////////////// LAY)">*49H
.x!7
标准 C++ (同上的不再注释) '<D `:srV
|5IY`;+9
#include <algorithm> //STL 通用算法 N9=r#![>,
#include <bitset> //STL 位集容器 8gtCY~m
#include <cctype> U=i8>6V
#include <cerrno> HS`bto0*
#include <clocale> R_Gq8t$
#include <cmath> /GuSIZg"_
#include <complex> //复数类 Dd#
SUQ
#include <cstdio> TFC!u0Y"$
#include <cstdlib> '^ e/F)0
#include <cstring> \ ~LU 'j
#include <ctime> sMfFm@\ N
#include <deque> //STL 双端队列容器 %V %#y $l
#include <exception> //异常处理类 P"=UI$HN
#include <fstream> HcBH!0
#include <functional> //STL 定义运算函数(代替运算符) e}R2J`7
#include <limits> 6PJJ?}P^1
#include <list> //STL 线性列表容器 1&% d
#include <map> //STL 映射容器 f1Yv hvWL
#include <iomanip> B)DC,+@$
#include <ios> //基本输入/输出支持 h#@4@x{
#include <iosfwd> //输入/输出系统使用的前置声明 2[LX\
#include <iostream> => uVp
#include <istream> //基本输入流 M8?#%x6;N
#include <ostream> //基本输出流 }+dM1 O
#include <queue> //STL 队列容器 g8+4$2`ny
#include <set> //STL 集合容器 X&9^&U=e
#include <sstream> //基于字符串的流 B15O,sL&W
#include <stack> //STL 堆栈容器 r%TLv
#include <stdexcept> //标准异常类 !qTpQ5Dm
#include <streambuf> //底层输入/输出支持 Zr.\`mG4f
#include <string> //字符串类 #Z|%0r_~
#include <utility> //STL 通用模板类 aT?p>
#include <vector> //STL 动态数组容器 QDjW!BsX3
#include <cwchar> "$~}'`(]
#include <cwctype> 0+K`pS'
+QIGR'3u
using namespace std; A;fB6
V6@*\+:3)
////////////////////////////////////////////////////////////////////////// vLv|SqD
,30FGz^i
C99 增加 &547`*
~j/bCMEf!
#include <complex.h> //复数处理 |TB@@ 2Ky&
#include <fenv.h> //浮点环境 u [V4OU}%
#include <inttypes.h> //整数格式转换 X+dR<GN+YX
#include <stdbool.h> //布尔环境 _=|nOj39
#include <stdint.h> //整型环境 [Krm .)
#include <tgmath.h> //通用类型数学宏