C、传统 C++ 9H%X2#:fH
VJS8)oI~
#include <assert.h> //设定插入点 #BSTlz
#include <ctype.h> //字符处理 D|.ic!w'
#include <errno.h> //定义错误码 twx[s$O'b
#include <float.h> //浮点数处理 &
GreN
#include <fstream.h> //文件输入/输出 @/1w4'M
#include <iomanip.h> //参数化输入/输出 iJ~Vl"|m
#include <iostream.h> //数据流输入/输出 GQ-Rtn4v
#include <limits.h> //定义各种数据类型最值常量 \7*`}&
#include <locale.h> //定义本地化函数 e zOj+vz
#include <math.h> //定义数学函数 }[xs~!2F
#include <stdio.h> //定义输入/输出函数 <'g:T(t
#include <stdlib.h> //定义杂项函数及内存分配函数 ?C/Te)
#include <string.h> //字符串处理 JwXT%op9RP
#include <strstrea.h> //基于数组的输入/输出 `[n("7,
#include <time.h> //定义关于时间的函数 %$DI^yS
#include <wchar.h> //宽字符处理及输入/输出 =yy5D$\
#include <wctype.h> //宽字符分类 9`9R!=NM
h*<P$t
////////////////////////////////////////////////////////////////////////// wKsT7c'
ki)#d'
}
标准 C++ (同上的不再注释) w[ ~#av9
6VhjJJ
#include <algorithm> //STL 通用算法 [0D
Et
#include <bitset> //STL 位集容器 _(KbiEB{
#include <cctype> 0c#/hFn
#include <cerrno> 7t*"%]o
#include <clocale> ZGd!IghL
#include <cmath> p*P)KP
#include <complex> //复数类 &/Q0
#include <cstdio> u#@Q:tnN_
#include <cstdlib> q?ix$nKOv
#include <cstring> NhYLtw^u
#include <ctime> Q6r7.pk"SU
#include <deque> //STL 双端队列容器 pn^ d]rou?
#include <exception> //异常处理类 rX1QMR7?
#include <fstream> J^g!++|2P
#include <functional> //STL 定义运算函数(代替运算符) |.3DD"*
#include <limits> S)/_muP
#include <list> //STL 线性列表容器 to$h2#i_
#include <map> //STL 映射容器 a.zpp'cEb
#include <iomanip> \~_9G{2?
#include <ios> //基本输入/输出支持 f@c`8L@g
#include <iosfwd> //输入/输出系统使用的前置声明 pt}X>ph{
#include <iostream> wLH] <k
#include <istream> //基本输入流 nxl[d\ap+n
#include <ostream> //基本输出流 [r[=W!
#include <queue> //STL 队列容器 1&U>,;]*
#include <set> //STL 集合容器 "%x<ttLl
#include <sstream> //基于字符串的流 x UD-iSY
#include <stack> //STL 堆栈容器 g"> {9YE
#include <stdexcept> //标准异常类 # m *J&
#include <streambuf> //底层输入/输出支持 :dqn h
#include <string> //字符串类 =i7`ek
#include <utility> //STL 通用模板类 ziCHjqT
#include <vector> //STL 动态数组容器 ,YMp<C
#include <cwchar> aT$9;
#include <cwctype> _zwUE
'uxX5k/D@t
using namespace std; s]JF0584
_> *jH'
////////////////////////////////////////////////////////////////////////// !U~WK$BP
$
<#KA3o\
C99 增加 8M`#pN^
HF.^ysI
#include <complex.h> //复数处理 82DmG@"s2
#include <fenv.h> //浮点环境 KkE9KwZ]W
#include <inttypes.h> //整数格式转换 fwRZ5`v<
#include <stdbool.h> //布尔环境 RSfzRnhmr
#include <stdint.h> //整型环境 ^!by3Elqqk
#include <tgmath.h> //通用类型数学宏