C、传统 C++ N'g>MBdI
oW<5|FaN
#include <assert.h> //设定插入点 `}mcEl
#include <ctype.h> //字符处理 *Eo?k<:zPm
#include <errno.h> //定义错误码 Pb?$t
#include <float.h> //浮点数处理 oJ4AIQjB
#include <fstream.h> //文件输入/输出 @&1ZB6OCb:
#include <iomanip.h> //参数化输入/输出 "br,/Dk>MX
#include <iostream.h> //数据流输入/输出 w,h`s.AN
#include <limits.h> //定义各种数据类型最值常量 JKGc3j,+#
#include <locale.h> //定义本地化函数 Vm3v-=6
#include <math.h> //定义数学函数 !Cr(Pe]
#include <stdio.h> //定义输入/输出函数 $4/yZaVb
#include <stdlib.h> //定义杂项函数及内存分配函数 MhR:c7,
#include <string.h> //字符串处理 *.!Np9l,V
#include <strstrea.h> //基于数组的输入/输出 Fxm$9(Y
#include <time.h> //定义关于时间的函数 1UE6 4Kl:S
#include <wchar.h> //宽字符处理及输入/输出 dYL"h.x
#include <wctype.h> //宽字符分类 qNYN-f~@,
4"(<X
////////////////////////////////////////////////////////////////////////// S"xKL{5
R:#k%}W
标准 C++ (同上的不再注释) +R|z{M)*
;
mZW{j
#include <algorithm> //STL 通用算法 !4^C #{$
#include <bitset> //STL 位集容器 oZ!m
#include <cctype> MOn
#include <cerrno> 8P1=[i]
#include <clocale> ',:*f8Jk
#include <cmath> `[W[H(AjQ
#include <complex> //复数类 P*I}yPeb
#include <cstdio> EL(nDv
#include <cstdlib> 1IZ3=6
#include <cstring> MBqt&_?K
#include <ctime> >[_f3;P
#include <deque> //STL 双端队列容器 d4?Mi2/jF
#include <exception> //异常处理类 22.8PO0
#include <fstream> Bs O+NP
#include <functional> //STL 定义运算函数(代替运算符) wM2*#
#include <limits> K%^V?NP*{Z
#include <list> //STL 线性列表容器 %O! v"Xh
#include <map> //STL 映射容器 R)mu2^
#include <iomanip> [uI|DUlI6o
#include <ios> //基本输入/输出支持 Bh;7C@dq
#include <iosfwd> //输入/输出系统使用的前置声明 @JyK|.b#0
#include <iostream> vSi.txV2
#include <istream> //基本输入流 5 N#3a0)
#include <ostream> //基本输出流 )?X-(4
#include <queue> //STL 队列容器 v
8$>rwB
#include <set> //STL 集合容器 )i!o8YB
#include <sstream> //基于字符串的流 YbTxn="_
#include <stack> //STL 堆栈容器 H;YP8MoQ
#include <stdexcept> //标准异常类 i*#-I3
#include <streambuf> //底层输入/输出支持 Yy)tmq
#include <string> //字符串类 [3{W^WSOz
#include <utility> //STL 通用模板类 cd$m25CxC
#include <vector> //STL 动态数组容器 a{
?`t|
#include <cwchar> qzf!l"bT
#include <cwctype> %Ti}CwI`
kPF9Z "l
using namespace std; (Q.waI
T>R0T{A
////////////////////////////////////////////////////////////////////////// 1T-8K
r
M#As0~y
C99 增加 ]
:BX!<
sB c
(gr
#include <complex.h> //复数处理 Q\
U:~g3
#include <fenv.h> //浮点环境 iZaI_\"__
#include <inttypes.h> //整数格式转换 !f&Kf,#b`
#include <stdbool.h> //布尔环境 :=wTvz
#include <stdint.h> //整型环境 }j*KcB_
#include <tgmath.h> //通用类型数学宏