C、传统 C++ hAc|a9 o
4pQf*l8e
#include <assert.h> //设定插入点 8-k`"QI=
#include <ctype.h> //字符处理 JN` $Fq+
#include <errno.h> //定义错误码 )1Y?S;
#include <float.h> //浮点数处理 xf,A<j(o
#include <fstream.h> //文件输入/输出
k0ai#3iJ
#include <iomanip.h> //参数化输入/输出 +WMXd.iN,
#include <iostream.h> //数据流输入/输出 \f(zMP
#include <limits.h> //定义各种数据类型最值常量 -LUZ7,!/>o
#include <locale.h> //定义本地化函数 i$6rnS&C
#include <math.h> //定义数学函数 oA7DhU5n
#include <stdio.h> //定义输入/输出函数 8zlvzp
#include <stdlib.h> //定义杂项函数及内存分配函数 pOn &D
#include <string.h> //字符串处理 vxC];nCC#
#include <strstrea.h> //基于数组的输入/输出 <rK[ &JlJ
#include <time.h> //定义关于时间的函数 }+pwSjsno
#include <wchar.h> //宽字符处理及输入/输出 srAWet
#include <wctype.h> //宽字符分类 '7oCWHq[
:3D6OBkB
////////////////////////////////////////////////////////////////////////// V]+y*b.60
8IxIW0
标准 C++ (同上的不再注释) z~~pH9=c2
%Y=r5'6l
#include <algorithm> //STL 通用算法 w{xa@Q]t-
#include <bitset> //STL 位集容器 8 M,@Mbn
#include <cctype> 0,0Z!-Y
#include <cerrno> T|D^kL%m!
#include <clocale> {J,"iJKop
#include <cmath> (hZNWQ0
#include <complex> //复数类 :):vB
#include <cstdio> ,]: <l
#include <cstdlib> a:UkVK]MP
#include <cstring> m;{HlDez
#include <ctime> !9KDdU
#include <deque> //STL 双端队列容器 fmQif]J;;
#include <exception> //异常处理类 FGyrDRDwC
#include <fstream> p_&B+
<z
#include <functional> //STL 定义运算函数(代替运算符) x7<l*WQ
#include <limits> fKr_u<|
#include <list> //STL 线性列表容器 }[UH1+`L
#include <map> //STL 映射容器 pL;e(lM
#include <iomanip> ~?fl8RF\
#include <ios> //基本输入/输出支持 V59!}kel1%
#include <iosfwd> //输入/输出系统使用的前置声明 Db*b"/]
#include <iostream> Y,}h{*9Kd
#include <istream> //基本输入流 A- Abj'
#include <ostream> //基本输出流 R13k2jLSQ
#include <queue> //STL 队列容器 JeNX5bXW
#include <set> //STL 集合容器 % 33O)<?
#include <sstream> //基于字符串的流 wL3RcXW``e
#include <stack> //STL 堆栈容器 G/#<d-}_
#include <stdexcept> //标准异常类 [f lK
#include <streambuf> //底层输入/输出支持 $/g`{OI]K
#include <string> //字符串类 k\T]*A
#include <utility> //STL 通用模板类 U>.5vK.+
#include <vector> //STL 动态数组容器 >]gB@tn[
#include <cwchar> LiQH!yHW
#include <cwctype> ;}U]^LT=
8J$1N*J|
using namespace std; *aWh]x9TlU
"j?x gV
////////////////////////////////////////////////////////////////////////// !> +Lre@
%5KK#w "
C99 增加 /<$|tp\Rc
_RxnB?
#include <complex.h> //复数处理 fS|e{!iI"
#include <fenv.h> //浮点环境 dJnKa]X
#include <inttypes.h> //整数格式转换 ~aQR_S
#include <stdbool.h> //布尔环境 P, l
(4
#include <stdint.h> //整型环境 Vh?vD:|
#include <tgmath.h> //通用类型数学宏