C、传统 C++ (R]b'3,E$
| Zj=E$
#include <assert.h> //设定插入点 /s
Bs eI
#include <ctype.h> //字符处理 ~COd(,ul
#include <errno.h> //定义错误码 `zOn(6B;U
#include <float.h> //浮点数处理 mvu$
#include <fstream.h> //文件输入/输出 AP9>_0=
#include <iomanip.h> //参数化输入/输出 `Y,<[ Lnr
#include <iostream.h> //数据流输入/输出 om{aws;
#include <limits.h> //定义各种数据类型最值常量 xM_+vN*(
#include <locale.h> //定义本地化函数 !'(QF9%Q
#include <math.h> //定义数学函数 r*g<A2g%
#include <stdio.h> //定义输入/输出函数 @a}\]REn
#include <stdlib.h> //定义杂项函数及内存分配函数 O4oI&i 7
#include <string.h> //字符串处理 )sLXtV)nm6
#include <strstrea.h> //基于数组的输入/输出 Q\pI\]p:
#include <time.h> //定义关于时间的函数 Ap!Y 3C
#include <wchar.h> //宽字符处理及输入/输出 aucG|}B
#include <wctype.h> //宽字符分类 fl+2'~
C zxF
////////////////////////////////////////////////////////////////////////// +jyWqld.K1
Su]p6B
标准 C++ (同上的不再注释) g|<$\}
<KrfM
#include <algorithm> //STL 通用算法 ^oDSU7j5,
#include <bitset> //STL 位集容器 zXGi
#include <cctype> h@+(VQ
#include <cerrno> b G/[mZpRT
#include <clocale> o{OY1 ;=6
#include <cmath> Eb89B%L62G
#include <complex> //复数类 9uW\~DwsZ%
#include <cstdio> \*\ )zj*r
#include <cstdlib> 0[R7HX-@
#include <cstring> .-}F~FES
#include <ctime> 'a=' (,%
#include <deque> //STL 双端队列容器 'Omj-o'tn9
#include <exception> //异常处理类 )26_7.|
#include <fstream> :,Mg1Zf
#include <functional> //STL 定义运算函数(代替运算符) L+Q.y~
#include <limits> fcisDu8n
#include <list> //STL 线性列表容器 dCO)"]
#include <map> //STL 映射容器 ;`
!j~
#include <iomanip> lO=~&_
#include <ios> //基本输入/输出支持 ^ ^k]2oG
#include <iosfwd> //输入/输出系统使用的前置声明 _e$T'*q
#include <iostream> Qn`Fq,uvL
#include <istream> //基本输入流 qHE( p+]E
#include <ostream> //基本输出流 -$o4WSd~
#include <queue> //STL 队列容器 A;gU@8m
#include <set> //STL 集合容器 MXrh[QCU)
#include <sstream> //基于字符串的流 ,_I#+XiXY
#include <stack> //STL 堆栈容器 *d&+?!
#include <stdexcept> //标准异常类 T*qSk!
#include <streambuf> //底层输入/输出支持 s]2_d|Y
#include <string> //字符串类 h5}:>yc
#include <utility> //STL 通用模板类 >.r> aH
#include <vector> //STL 动态数组容器 W5R /
#include <cwchar> Itv}TK
eF
#include <cwctype> &nfGRb
s'=w/os
using namespace std; +K7oyZg
/Gvd5
////////////////////////////////////////////////////////////////////////// tlcNGPa
(!0fmL
C99 增加 ?VR:e7|tU
p
#Y2v
#include <complex.h> //复数处理 E@7);i5K
#include <fenv.h> //浮点环境 OpFm:j3
#include <inttypes.h> //整数格式转换 G$-[(eu-
#include <stdbool.h> //布尔环境 ^e(*{K;8
#include <stdint.h> //整型环境 ?k+>~k{}a
#include <tgmath.h> //通用类型数学宏