C、传统 C++ D`r:`
<q%buyQna
#include <assert.h> //设定插入点 +`_%U7p(
#include <ctype.h> //字符处理 RP z0WP
#include <errno.h> //定义错误码 SgFyv<6>:
#include <float.h> //浮点数处理 Y-@K@Zu]?
#include <fstream.h> //文件输入/输出 p?=rQte([
#include <iomanip.h> //参数化输入/输出 +!dIEt).U
#include <iostream.h> //数据流输入/输出 ^0A'XCULG
#include <limits.h> //定义各种数据类型最值常量 mTYEK4}
#include <locale.h> //定义本地化函数 r/+<_3
#include <math.h> //定义数学函数 (?I8/KYR
#include <stdio.h> //定义输入/输出函数 #U(dleT8
#include <stdlib.h> //定义杂项函数及内存分配函数 6
}qNH29
#include <string.h> //字符串处理 )DfmO
#include <strstrea.h> //基于数组的输入/输出 N
0&h5
#include <time.h> //定义关于时间的函数 Yep(,J~'
#include <wchar.h> //宽字符处理及输入/输出 lySeq^y?Q
#include <wctype.h> //宽字符分类 2|kx:^D p
KE&Y~y8O\
////////////////////////////////////////////////////////////////////////// :_i1)4[!
'X"@C;q
标准 C++ (同上的不再注释) B@=+Fg DD
I/_`/mQ
#include <algorithm> //STL 通用算法 Fla,#uB
#include <bitset> //STL 位集容器 73rr">
9#0
#include <cctype> = %\;7
#include <cerrno> 8@|+-)t
#include <clocale> 7?qRY9Qu
#include <cmath> sr
sDnf
#include <complex> //复数类 a(NN%'fDD
#include <cstdio> FG38) /
#include <cstdlib> %=S~[&8C
#include <cstring> 4[9~g=y>
#include <ctime> uqnoE;57^
#include <deque> //STL 双端队列容器 aRC>pK.
#include <exception> //异常处理类 Q: [d
#include <fstream> mH}/QfUlq
#include <functional> //STL 定义运算函数(代替运算符) G5 Y 8]N
#include <limits> x0?8AG%
#include <list> //STL 线性列表容器 i_)j K
#include <map> //STL 映射容器 NELQo#kjZ
#include <iomanip> ~}z{RE($v
#include <ios> //基本输入/输出支持 M4XnuFGB[w
#include <iosfwd> //输入/输出系统使用的前置声明 ,Si\ky7L
#include <iostream> N9r02c
#include <istream> //基本输入流 2d >kc2=*
#include <ostream> //基本输出流 ,i;kAy)
#include <queue> //STL 队列容器 fF;Oz"I{\
#include <set> //STL 集合容器 c_)vWU
#include <sstream> //基于字符串的流 "gfy6m
#include <stack> //STL 堆栈容器 6,7Fl=<
#include <stdexcept> //标准异常类 /RT3r
#include <streambuf> //底层输入/输出支持 Xl.h&x0?
8
#include <string> //字符串类 @c,}\"(
#include <utility> //STL 通用模板类 J@=1zL
#include <vector> //STL 动态数组容器 KCGs*kp>
#include <cwchar> /iQ}DbtRb
#include <cwctype> & G@(f=
'sn%+oN
using namespace std; #U{^L{1Gx
3o%JJIn&
////////////////////////////////////////////////////////////////////////// t7H2z}06=h
cmmH)6c>
C99 增加 @f{yx\u/
R)?K+cJ%
#include <complex.h> //复数处理 ja$ e)
#include <fenv.h> //浮点环境 [9u/x%f(
#include <inttypes.h> //整数格式转换 #?k$0|60
#include <stdbool.h> //布尔环境 cYFR.~p
#include <stdint.h> //整型环境 HIcx "y
#include <tgmath.h> //通用类型数学宏