C、传统 C++ TbT/ 5W3
~n) |
#include <assert.h> //设定插入点 4&%H;Q
#include <ctype.h> //字符处理 =q)+_@24>d
#include <errno.h> //定义错误码 UR=s=G|
#include <float.h> //浮点数处理 W2h4ej\s
#include <fstream.h> //文件输入/输出 m9MYd
#include <iomanip.h> //参数化输入/输出 =T26vu
#include <iostream.h> //数据流输入/输出 dY0W=,X$7T
#include <limits.h> //定义各种数据类型最值常量 5pDE!6gQ
#include <locale.h> //定义本地化函数 2-N7%]h
#include <math.h> //定义数学函数 y=f.;
#include <stdio.h> //定义输入/输出函数 a73VDQr I
#include <stdlib.h> //定义杂项函数及内存分配函数 .m8l\h^3
#include <string.h> //字符串处理 $IX(a4'
#include <strstrea.h> //基于数组的输入/输出 ub9[!}r't
#include <time.h> //定义关于时间的函数 "DGap*=J
#include <wchar.h> //宽字符处理及输入/输出 C;/ONF
#include <wctype.h> //宽字符分类 Ja4M@z
&v1E)/q{Z
////////////////////////////////////////////////////////////////////////// }qoId3iY!7
r(Z?Fs/
标准 C++ (同上的不再注释) Gf9sexn]l
59SL
mj
#include <algorithm> //STL 通用算法 Bhx.q,X
#include <bitset> //STL 位集容器 RsS:I6L
#include <cctype> *y7Yf7
#include <cerrno> ,30lu a
#include <clocale> vO~w~u5
#include <cmath> RrCG(Bh
#include <complex> //复数类 3fpaTue|x
#include <cstdio> ]+a~/
#include <cstdlib> zA+0jhuG
#include <cstring> O;V^Fk(
#include <ctime> .E+O,@?<
#include <deque> //STL 双端队列容器 /ar0K9`c
#include <exception> //异常处理类 C@t,oDU#
#include <fstream> xr@;w8X`^
#include <functional> //STL 定义运算函数(代替运算符) 2Og5e
#include <limits> ,xrA2
#include <list> //STL 线性列表容器 cT@|
$A
#include <map> //STL 映射容器 L>E;cDB
#include <iomanip> \?Z7|
#include <ios> //基本输入/输出支持 1pG|jT+Bi
#include <iosfwd> //输入/输出系统使用的前置声明 x0{B7/FN
#include <iostream> S#oBO%!
#include <istream> //基本输入流 :k`Qj(7S
#include <ostream> //基本输出流 O/ItN5B
;
#include <queue> //STL 队列容器 \nWbGS(
#include <set> //STL 集合容器 7BwR ].
#include <sstream> //基于字符串的流 OgQ8yKfDB
#include <stack> //STL 堆栈容器 8jL^q;R_(
#include <stdexcept> //标准异常类 P*K"0[\n
#include <streambuf> //底层输入/输出支持 AY<L8
#include <string> //字符串类
*q,nALs
#include <utility> //STL 通用模板类 Ja5od
#include <vector> //STL 动态数组容器 g@s`PBF7`
#include <cwchar> -}j(_]t
#include <cwctype> )p;t
'*]
X)Tyxppf'
using namespace std; Wf5;~RJC?
8mRZ(B>% X
////////////////////////////////////////////////////////////////////////// oHv.EO
>?ar
C99 增加 q "T?
hWFOed4C
#include <complex.h> //复数处理 |@1(^GX
#include <fenv.h> //浮点环境 -Q5UT=^
#include <inttypes.h> //整数格式转换 2_3os
P\Z
#include <stdbool.h> //布尔环境 v 5pkP
#include <stdint.h> //整型环境 &J|I&p
#include <tgmath.h> //通用类型数学宏