C、传统 C++ 3 !sZA?q
:XAyMK7
#include <assert.h> //设定插入点 _s0)Dl6K
#include <ctype.h> //字符处理 <Dgf'GrJ
#include <errno.h> //定义错误码 l4taD!WD/
#include <float.h> //浮点数处理 )OFN0'
#include <fstream.h> //文件输入/输出 I!9>"s12
#include <iomanip.h> //参数化输入/输出 <<gW`KF
#include <iostream.h> //数据流输入/输出 ~}ifwm'7 a
#include <limits.h> //定义各种数据类型最值常量 ONpvx5'#
#include <locale.h> //定义本地化函数 XI$W
#include <math.h> //定义数学函数 Z{l`X#':
#include <stdio.h> //定义输入/输出函数 E'mT%@MOM
#include <stdlib.h> //定义杂项函数及内存分配函数 e2V;6N
#include <string.h> //字符串处理 %rlqq*
#include <strstrea.h> //基于数组的输入/输出 .+?]"1>]
#include <time.h> //定义关于时间的函数 _D{FQRU<YD
#include <wchar.h> //宽字符处理及输入/输出 S[y_Ewzq
#include <wctype.h> //宽字符分类 FcZ)^RQ4G
%q eNC\6N
////////////////////////////////////////////////////////////////////////// <liprUFsn
6nsb)7a
标准 C++ (同上的不再注释) dG~U3\!
~~"U[G1
#include <algorithm> //STL 通用算法 Yg&/^
#include <bitset> //STL 位集容器 p^w)@^f
#include <cctype> P<[)
qq@;
#include <cerrno> 3rN}iSF^
#include <clocale> \Jc}Hzug
#include <cmath> /GJL&RMx
#include <complex> //复数类 T\4>4eX-
#include <cstdio> ~^'t70 :D
#include <cstdlib> %$)Sz[=
#include <cstring> lF46W
#include <ctime> #7:ah
#include <deque> //STL 双端队列容器 ZRwN #?x
#include <exception> //异常处理类 fn7?g
#include <fstream> &jg>X+;
#include <functional> //STL 定义运算函数(代替运算符) Unt]=S3u
#include <limits> >bhF{*t#;y
#include <list> //STL 线性列表容器 wM;=^br
#include <map> //STL 映射容器 `RU RC"
#include <iomanip> N(J#<;!yb
#include <ios> //基本输入/输出支持 &io+*
#include <iosfwd> //输入/输出系统使用的前置声明 2p 7;v7)y
#include <iostream> ;.$vDin6
#include <istream> //基本输入流 &"Cy&[
#include <ostream> //基本输出流 ^aJ]|*m
#include <queue> //STL 队列容器 \7$"i5
#include <set> //STL 集合容器 Y37qjV
#include <sstream> //基于字符串的流 ,|zwY~lt5
#include <stack> //STL 堆栈容器 x|^p9m"=%
#include <stdexcept> //标准异常类 ,}>b\(Lk
#include <streambuf> //底层输入/输出支持 aDLlL?r3
#include <string> //字符串类 ]*)l_mut7
#include <utility> //STL 通用模板类 `!ja0Sq]U
#include <vector> //STL 动态数组容器 @K#}nKN'
#include <cwchar> z<yqQ[
#include <cwctype> zY4y]k8D*
g~=-
,j|
using namespace std; Ne1W!0YLK
4VsttT
////////////////////////////////////////////////////////////////////////// *44E'Dxv
,!^;<UR:
C99 增加 ORIXcj]
5N2`e3:I
#include <complex.h> //复数处理 IfCa6g<&(
#include <fenv.h> //浮点环境 Z =*h9,MY
#include <inttypes.h> //整数格式转换 [ofZ1hB4
#include <stdbool.h> //布尔环境
X;dUlSi
#include <stdint.h> //整型环境 v
5&8C
#include <tgmath.h> //通用类型数学宏