C、传统 C++ ns[Q %_
) bGzsb1\
#include <assert.h> //设定插入点 q\6ZmKGnT
#include <ctype.h> //字符处理 Lv?e[GA
#include <errno.h> //定义错误码 ZYX(Cf
#include <float.h> //浮点数处理 0E#3XhU
#include <fstream.h> //文件输入/输出 Kf7v_T/
#include <iomanip.h> //参数化输入/输出 ~/kx
#include <iostream.h> //数据流输入/输出 -J=N
#include <limits.h> //定义各种数据类型最值常量 vy330SQPo
#include <locale.h> //定义本地化函数 QZ51}i
#include <math.h> //定义数学函数 q!zsGf{
#include <stdio.h> //定义输入/输出函数 JdeGQ
#include <stdlib.h> //定义杂项函数及内存分配函数 O:,Fif?;
#include <string.h> //字符串处理 ' fm}&0
#include <strstrea.h> //基于数组的输入/输出 .FXn=4l'vV
#include <time.h> //定义关于时间的函数 F45UO%/P
#include <wchar.h> //宽字符处理及输入/输出 zmMz6\ $
#include <wctype.h> //宽字符分类 C %o^AR
+'!vm6
////////////////////////////////////////////////////////////////////////// V|8`]QW@
{$mj9?n=v
标准 C++ (同上的不再注释) #r_&Q`!eU
#<|q4a{8
#include <algorithm> //STL 通用算法 D#,P-0+%
#include <bitset> //STL 位集容器 .)eX(2j\
#include <cctype> LAwAFma>
#include <cerrno> %@d~)f
#include <clocale> *aF<#m v
#include <cmath> :X6A9jmd
#include <complex> //复数类 _n+./B
#include <cstdio> #e8NF,H5
#include <cstdlib> 7EAkY`Op
#include <cstring> [8QE}TFic
#include <ctime> #I.Wmfz
#include <deque> //STL 双端队列容器 n7S~nk
#include <exception> //异常处理类 Q@lJ|
#include <fstream> UE9r1g`z
#include <functional> //STL 定义运算函数(代替运算符) l1qWl
#include <limits> = ,=t Sp
#include <list> //STL 线性列表容器 y$e'- v
#include <map> //STL 映射容器 G_]
(7
#include <iomanip> oLXQ#{([
#include <ios> //基本输入/输出支持 D'823,-).
#include <iosfwd> //输入/输出系统使用的前置声明 CdRgI^5
#include <iostream> 5'Fh_TXTD
#include <istream> //基本输入流 !Z6GID})p
#include <ostream> //基本输出流 -IB~lw
#include <queue> //STL 队列容器 $fE$j {
#include <set> //STL 集合容器 A,T3%TE
#include <sstream> //基于字符串的流 Sgt@G=_o
#include <stack> //STL 堆栈容器 &<P!o_+eb
#include <stdexcept> //标准异常类 ?*Kewj
#include <streambuf> //底层输入/输出支持 #'-L`])7uw
#include <string> //字符串类 &\0`\#R
#include <utility> //STL 通用模板类 u&>o1!c*P
#include <vector> //STL 动态数组容器 huau(s0um
#include <cwchar> {AY`\G
#include <cwctype> e>kw>%3bl9
E30VKh |
using namespace std; J!:ss
Iz#h:O
////////////////////////////////////////////////////////////////////////// J8x>vC
r$*p
C99 增加 %HJ_0qg
VlVd"jW
#include <complex.h> //复数处理 WJ+<&6W8
#include <fenv.h> //浮点环境 EK^ld!g(
#include <inttypes.h> //整数格式转换 N(]>(S
o
#include <stdbool.h> //布尔环境 .TURS
#include <stdint.h> //整型环境 B%L0g.D"
#include <tgmath.h> //通用类型数学宏