C、传统 C++ 4)`{ L$
rC'97`!K
#include <assert.h> //设定插入点
! _QU-
#include <ctype.h> //字符处理 Dd*C?6
#include <errno.h> //定义错误码 =lzjMRX(?
#include <float.h> //浮点数处理 //`X+[bMG
#include <fstream.h> //文件输入/输出 CkOd>Kn
#include <iomanip.h> //参数化输入/输出
5!wa\)wY
#include <iostream.h> //数据流输入/输出 <h^vl-L>
#include <limits.h> //定义各种数据类型最值常量 :/u
EPki
#include <locale.h> //定义本地化函数 S -im
o
#include <math.h> //定义数学函数 7{p,<Uz<"U
#include <stdio.h> //定义输入/输出函数 |'Jz(dv[
#include <stdlib.h> //定义杂项函数及内存分配函数 ^JH 4:
h
#include <string.h> //字符串处理 VlKWWQj
#include <strstrea.h> //基于数组的输入/输出 #
TvY*D,
#include <time.h> //定义关于时间的函数 &n['#7 <(!
#include <wchar.h> //宽字符处理及输入/输出 <FP&1Eg!|
#include <wctype.h> //宽字符分类 H=*;3gM,'
,}J(&
////////////////////////////////////////////////////////////////////////// i7iL[+f]Q
Nl0*"}`I_
标准 C++ (同上的不再注释) BYRf MtT@+
Ty7xjIs
#include <algorithm> //STL 通用算法 B%[Yu3gBo
#include <bitset> //STL 位集容器 ,XR1N$LN8_
#include <cctype> PKmr5FB
#include <cerrno> |'.\}xt7
#include <clocale> GP1b/n3F1
#include <cmath> '?4B0=
#include <complex> //复数类 g%Eb{~v
#include <cstdio> )A,MTi
#include <cstdlib> usU5q>1
#include <cstring> 67^?v)|
#include <ctime> 9[T}cN=|
#include <deque> //STL 双端队列容器 dxsPX=\:
#include <exception> //异常处理类 T-0fVTeN
#include <fstream> I~|.Re9a
#include <functional> //STL 定义运算函数(代替运算符) |BN^5mqP6
#include <limits> b{_J%p
#include <list> //STL 线性列表容器 ]%pr1Ey
#include <map> //STL 映射容器 wMr*D['" #
#include <iomanip> (/JiOg^cw
#include <ios> //基本输入/输出支持 saY":fva
#include <iosfwd> //输入/输出系统使用的前置声明 <A<N? `"
#include <iostream> 5NHNnDhuL
#include <istream> //基本输入流 WTbq)D(&[_
#include <ostream> //基本输出流 |U)M.\h
#include <queue> //STL 队列容器 ^-Bx zOp
#include <set> //STL 集合容器 ;Lr]w8d
#include <sstream> //基于字符串的流 WWZ`RY
#include <stack> //STL 堆栈容器 ].w~FUa
#include <stdexcept> //标准异常类 >8PGyc*9
#include <streambuf> //底层输入/输出支持 j"1#n? 0
#include <string> //字符串类 J#ujI e
#include <utility> //STL 通用模板类 OlI|.~
#include <vector> //STL 动态数组容器 3RJsH:u8
#include <cwchar> `|(S]xPHM
#include <cwctype> '*lVVeSiFw
+VT/c
using namespace std; /-s-W<S[
t>Lq
"]1
////////////////////////////////////////////////////////////////////////// 4h~CDy%_
KDxqz$14-
C99 增加 %\$~B?At
xl>8B/Zmf#
#include <complex.h> //复数处理 i24t$7q
#include <fenv.h> //浮点环境 F#=M$j_
#include <inttypes.h> //整数格式转换 A{|^_1
#include <stdbool.h> //布尔环境 [0MNq]gxf
#include <stdint.h> //整型环境 e|>
5
R
#include <tgmath.h> //通用类型数学宏