C、传统 C++ _D(F[p|
{E`f(9r:
#include <assert.h> //设定插入点 #.%;U' #O
#include <ctype.h> //字符处理 i5*sG^<$H
#include <errno.h> //定义错误码 @hWt.qO3s
#include <float.h> //浮点数处理 {j
E}mzi
#include <fstream.h> //文件输入/输出 Y0U<l1(|
#include <iomanip.h> //参数化输入/输出 ^YKEc0"w(
#include <iostream.h> //数据流输入/输出 }45&s9m=
#include <limits.h> //定义各种数据类型最值常量 Ydu=Jg5u7
#include <locale.h> //定义本地化函数 Qp${/
#include <math.h> //定义数学函数 J%_
:A"
#include <stdio.h> //定义输入/输出函数 'on, YEp
#include <stdlib.h> //定义杂项函数及内存分配函数 6?ylSQ]1
#include <string.h> //字符串处理 OY6lt.t
#include <strstrea.h> //基于数组的输入/输出 d7tH~9GX8
#include <time.h> //定义关于时间的函数 c X553&
#include <wchar.h> //宽字符处理及输入/输出 C
sn"sf
#include <wctype.h> //宽字符分类 i3>7R'q>
Zl.}J,0F
////////////////////////////////////////////////////////////////////////// / '}O-h
A=|&N%lP'
标准 C++ (同上的不再注释) O&irgc!
V5RfxWtm:
#include <algorithm> //STL 通用算法 ,?7URx*
#include <bitset> //STL 位集容器 a3037~X
#include <cctype> \?)<==^
#include <cerrno> Pd\S{ Y~wk
#include <clocale> Ohnd:8E
#include <cmath> &}%3yrU
#include <complex> //复数类 B}YB%P_CWs
#include <cstdio> z}N=Oe
#include <cstdlib> _y),C
#include <cstring> #IyxH$
#include <ctime> K9gfS V>]
#include <deque> //STL 双端队列容器 4RNB\D
#include <exception> //异常处理类 Hc4]2pf
#include <fstream> cyG3le& +G
#include <functional> //STL 定义运算函数(代替运算符) {v56k8uZ
#include <limits> <`a!%_LC
[
#include <list> //STL 线性列表容器 Bi)1*
#include <map> //STL 映射容器 Fmk,
"qs
#include <iomanip> hIC$4lR~
#include <ios> //基本输入/输出支持 x2[A(O=
#include <iosfwd> //输入/输出系统使用的前置声明 FU~ Ip
#include <iostream> izow=}
#include <istream> //基本输入流 +^!&-g@(
#include <ostream> //基本输出流 =x9zy]
#include <queue> //STL 队列容器 e&E""ye
#include <set> //STL 集合容器 n_hV;
#include <sstream> //基于字符串的流 &aaXw?/zr
#include <stack> //STL 堆栈容器 ](@Tbm8
#include <stdexcept> //标准异常类 S=ebht=
#include <streambuf> //底层输入/输出支持 q3e%L
#include <string> //字符串类 !,PG!Gnl
#include <utility> //STL 通用模板类 s7iguFQ
#include <vector> //STL 动态数组容器 8AVM(d@
#include <cwchar> *)ZDN~z7o
#include <cwctype> -Yy,L%E]F:
;+`t[ go
using namespace std; z'JtH^^Z
kA{[k
////////////////////////////////////////////////////////////////////////// Uo<d]4p $
+glT5sOk
C99 增加 [&y{z-D>
o4,W!^n2
#include <complex.h> //复数处理 kf>oZ*/
#include <fenv.h> //浮点环境 a8FC#kfq
#include <inttypes.h> //整数格式转换 xf?*fm?m
#include <stdbool.h> //布尔环境 Y'`w.+9
#include <stdint.h> //整型环境 CYmwT>P+*4
#include <tgmath.h> //通用类型数学宏