C、传统 C++ f9R~RRz
~96fyk|
#include <assert.h> //设定插入点 4.>rd6BAN-
#include <ctype.h> //字符处理 I.V?O}
#include <errno.h> //定义错误码 k5 s8s@
#include <float.h> //浮点数处理 a!OS2Tz:
#include <fstream.h> //文件输入/输出 TgFj-"L\
#include <iomanip.h> //参数化输入/输出 j%7N\Vb
#include <iostream.h> //数据流输入/输出 wOfx7D
#include <limits.h> //定义各种数据类型最值常量 6xDYEvHS
#include <locale.h> //定义本地化函数 hT
c
VMc
#include <math.h> //定义数学函数 |s<IZ2z]}R
#include <stdio.h> //定义输入/输出函数 soSdlV{
#include <stdlib.h> //定义杂项函数及内存分配函数 /iz{NulOz*
#include <string.h> //字符串处理 PAYbsn
#include <strstrea.h> //基于数组的输入/输出 D/& 8[Z/Cn
#include <time.h> //定义关于时间的函数 iR_j
h=2{
#include <wchar.h> //宽字符处理及输入/输出 }@+3QHwYU
#include <wctype.h> //宽字符分类 N*vBu`
]Tv0+ Ao
////////////////////////////////////////////////////////////////////////// S!\4,6
$ NNd4d*
标准 C++ (同上的不再注释) -> $]`h"
O7]p `Xi8
#include <algorithm> //STL 通用算法 A"yiXc-N~\
#include <bitset> //STL 位集容器 zk#NM"C+
#include <cctype> ~ 9F
rlj
#include <cerrno> 2h_XfY'3pX
#include <clocale> g>L4N.ZH_v
#include <cmath> YU*u!
#include <complex> //复数类 QL_vWG-
#include <cstdio> UaW,#P
#include <cstdlib> @/(\YzQvp]
#include <cstring> H>zX8qP+
#include <ctime> n\X'2
#include <deque> //STL 双端队列容器 )qyJwN
.D
#include <exception> //异常处理类 +JDQ`Qk
#include <fstream> :>y?B!=
#include <functional> //STL 定义运算函数(代替运算符) r4X0.
mPY*
#include <limits> nTG @=C#
#include <list> //STL 线性列表容器 2 %`~DVo
#include <map> //STL 映射容器 @y"/hh_?
#include <iomanip> F_<n8U:Y
#include <ios> //基本输入/输出支持 >#9f{
#include <iosfwd> //输入/输出系统使用的前置声明 mNc?`G_R
#include <iostream> Z$a5vu*pg
#include <istream> //基本输入流 Z%rMX}
#include <ostream> //基本输出流 -^R6U~
#include <queue> //STL 队列容器 %3Ba9Nmid
#include <set> //STL 集合容器 G)(vd0X1
#include <sstream> //基于字符串的流 fu=GgD*
#include <stack> //STL 堆栈容器 <%_7%
#include <stdexcept> //标准异常类 D@O#P^?
#include <streambuf> //底层输入/输出支持 (pDu
#include <string> //字符串类 *-.{->#Y
#include <utility> //STL 通用模板类 ||xiKg
#include <vector> //STL 动态数组容器 C[4{\3\Va
#include <cwchar> =hw&2c
#include <cwctype> #![9QUvcf
`f|Gw5R
using namespace std; j=q*b Qr
t\GoUeH]
////////////////////////////////////////////////////////////////////////// Fj_6jsDb
PU& v{gn
C99 增加 '<$!?="
hggP9I:s,
#include <complex.h> //复数处理 zp4aiMn1F
#include <fenv.h> //浮点环境 d ynq)lf
#include <inttypes.h> //整数格式转换 5{PT
#include <stdbool.h> //布尔环境 /i[1$/*
#include <stdint.h> //整型环境 88]4GVi
#include <tgmath.h> //通用类型数学宏