C、传统 C++ nh+Hwj#(x
Gn^m 541
#include <assert.h> //设定插入点 $"ACg!=M
#include <ctype.h> //字符处理 ;tC$O~X
#include <errno.h> //定义错误码 JHa\"h
#include <float.h> //浮点数处理 V[0
ZNT&
#include <fstream.h> //文件输入/输出 F *1w8+
#include <iomanip.h> //参数化输入/输出 |t~*!0>3
#include <iostream.h> //数据流输入/输出 fR]KXfZ
#include <limits.h> //定义各种数据类型最值常量 ART0o7B
#include <locale.h> //定义本地化函数 BS3{TGn
#include <math.h> //定义数学函数 m(`O>zS
#include <stdio.h> //定义输入/输出函数 6+4SMf3
#include <stdlib.h> //定义杂项函数及内存分配函数 <c$rfjM+JU
#include <string.h> //字符串处理 iKu4s
#include <strstrea.h> //基于数组的输入/输出 #,h0K
#include <time.h> //定义关于时间的函数 WAf"|
#include <wchar.h> //宽字符处理及输入/输出 C{~O!^2G
#include <wctype.h> //宽字符分类 7^<6|>j4
3mhjwgP<nn
////////////////////////////////////////////////////////////////////////// q6}KOO)
" c+$GS
标准 C++ (同上的不再注释) }#S1!TU
W;?e @}
#include <algorithm> //STL 通用算法 QCO,f
#include <bitset> //STL 位集容器 {E0\mZ2
#include <cctype> w?Pex]i{
#include <cerrno> uU=!e&3
#include <clocale> Ygc|9}
#include <cmath> 4v`G/w
#include <complex> //复数类 CSY-{
#include <cstdio> R6TT1Ka3c
#include <cstdlib> LtUvFe
#include <cstring> W#2} EX
#include <ctime> "R"{xOQl
#include <deque> //STL 双端队列容器 aYM~Ub:x{
#include <exception> //异常处理类 )iid9K<HB
#include <fstream> /D964VR1M\
#include <functional> //STL 定义运算函数(代替运算符) @9~x@[
#include <limits> ^6J*:(eM
#include <list> //STL 线性列表容器 *4%%^*g.I
#include <map> //STL 映射容器 A0OA7m:~4
#include <iomanip> F` &W5[
#include <ios> //基本输入/输出支持 GK;IY=8W
#include <iosfwd> //输入/输出系统使用的前置声明 }R/we`
#include <iostream> %/
"yt}"|
#include <istream> //基本输入流 2#ZqGf.'v
#include <ostream> //基本输出流 Bo\~PV[
#include <queue> //STL 队列容器 MRg Ozg
#include <set> //STL 集合容器 }rUAYr~V Z
#include <sstream> //基于字符串的流 iH~A7e62OZ
#include <stack> //STL 堆栈容器 7$x%A&]
#include <stdexcept> //标准异常类 }I1j #d0.
#include <streambuf> //底层输入/输出支持
sOb]o[=
#include <string> //字符串类 *Q#oV}D_
#include <utility> //STL 通用模板类 P@D\5}*6
#include <vector> //STL 动态数组容器 a_-@rceU
#include <cwchar> w|Ry)[
#include <cwctype> #M4LG; B
5~ZzQG
using namespace std; Ow(aRWUZD_
=zu;npM
////////////////////////////////////////////////////////////////////////// C_JO:$\rE
Kv)}
C99 增加 vK`HgRQ(C
'$rCV,3q
#include <complex.h> //复数处理 {+GR/l\!#
#include <fenv.h> //浮点环境 EM`'=<)V
#include <inttypes.h> //整数格式转换 K-@\";whF
#include <stdbool.h> //布尔环境 "$D'gSoYe
#include <stdint.h> //整型环境 ;&'r yYrex
#include <tgmath.h> //通用类型数学宏