C、传统 C++ U-wLt(Y<
h x6;YV
#include <assert.h> //设定插入点 S~$'WA
#include <ctype.h> //字符处理 Wi n8LOC
#include <errno.h> //定义错误码 !e#xx]v3
#include <float.h> //浮点数处理 O$`UCq
#include <fstream.h> //文件输入/输出 \F, DA"K_
#include <iomanip.h> //参数化输入/输出 h06ku2Q
#include <iostream.h> //数据流输入/输出 ,G^[o,hS
#include <limits.h> //定义各种数据类型最值常量 3-40'$lE
#include <locale.h> //定义本地化函数 1-I
Swd'u
#include <math.h> //定义数学函数 U3vEdw<lV
#include <stdio.h> //定义输入/输出函数 5H,G-
#include <stdlib.h> //定义杂项函数及内存分配函数 151tXSzLT
#include <string.h> //字符串处理 XM
Vq-8B0
#include <strstrea.h> //基于数组的输入/输出 bAxTLIf
#include <time.h> //定义关于时间的函数 ydWtvFuS
#include <wchar.h> //宽字符处理及输入/输出 VS?@y/\In
#include <wctype.h> //宽字符分类 s_jBu
$mco0%$
////////////////////////////////////////////////////////////////////////// dTEJ=d40
UkR3}{i
标准 C++ (同上的不再注释) ]0c Pml
;~HNpu$
#include <algorithm> //STL 通用算法 gvli %9n
#include <bitset> //STL 位集容器 MBk"KF
#include <cctype> yt.c5>B^
#include <cerrno> hN`gB#N3
#include <clocale> `0BdMKjA
#include <cmath> .")b?#K
#include <complex> //复数类 =.m6FRsU
#include <cstdio> 'zSgCgCHX8
#include <cstdlib> x;$|#]+
#include <cstring> `rWB`q|i<
#include <ctime> /rF8@l
#include <deque> //STL 双端队列容器 .PVLWW
#include <exception> //异常处理类 24@^{
}
#include <fstream> {KaN,td9
#include <functional> //STL 定义运算函数(代替运算符) K, (65>86;
#include <limits> ;?6>mh(`
#include <list> //STL 线性列表容器 R $b,h
#include <map> //STL 映射容器 GXb47_b^
#include <iomanip> ZW ye>]
#include <ios> //基本输入/输出支持 XK 3]AYH
#include <iosfwd> //输入/输出系统使用的前置声明 SR*Gqx
#include <iostream> I{n;4?
#include <istream> //基本输入流 (:?&G9k
"
#include <ostream> //基本输出流 5}<[[}(
#include <queue> //STL 队列容器 [%.18FWI
#include <set> //STL 集合容器 ~"mj;5Id
#include <sstream> //基于字符串的流 <Ry$7t,
#include <stack> //STL 堆栈容器 cb+y9wA
#include <stdexcept> //标准异常类 r=csi
#include <streambuf> //底层输入/输出支持 1k>naf~O
#include <string> //字符串类 Qyj(L[K J
#include <utility> //STL 通用模板类 oa0X5}D
#include <vector> //STL 动态数组容器 ?iln<%G
#include <cwchar> w??c1)
#include <cwctype> D9^7m
j?e
]V<"(?,K
using namespace std; yisLypM*
7zI5PGWw
////////////////////////////////////////////////////////////////////////// rA#s
=x4a~=HX
C99 增加 I q,v
~L){O*Z
#include <complex.h> //复数处理 jaqV[*440U
#include <fenv.h> //浮点环境 X8b#[40:
#include <inttypes.h> //整数格式转换 oWD)+5.]
#include <stdbool.h> //布尔环境 R92R}=G!
#include <stdint.h> //整型环境 ~u2w`H?V
#include <tgmath.h> //通用类型数学宏