C、传统 C++ uK1VFW
NmF8BmIj
#include <assert.h> //设定插入点 0<fQjXn
#include <ctype.h> //字符处理 ,]das
#include <errno.h> //定义错误码 )V*`(dn'zm
#include <float.h> //浮点数处理 b@K1;A! S
#include <fstream.h> //文件输入/输出 xh!T,|IR
#include <iomanip.h> //参数化输入/输出 FT J{
#include <iostream.h> //数据流输入/输出 I{.t-3hp
#include <limits.h> //定义各种数据类型最值常量 2+g'ul`
#include <locale.h> //定义本地化函数 y|3("&)"S
#include <math.h> //定义数学函数 y-gXGvZ
#include <stdio.h> //定义输入/输出函数 F}1._I`-
#include <stdlib.h> //定义杂项函数及内存分配函数 =ReSlt
#include <string.h> //字符串处理 l7IF9b$c
#include <strstrea.h> //基于数组的输入/输出 '- #QK'p
#include <time.h> //定义关于时间的函数 HNlW.y"
#include <wchar.h> //宽字符处理及输入/输出 jtE'T}! d
#include <wctype.h> //宽字符分类 [8oX[oP
Re'3 bs:+
////////////////////////////////////////////////////////////////////////// 8=?U7aw
Z$6B}cz<
标准 C++ (同上的不再注释) Ap |g[J
!:tr\L {
#include <algorithm> //STL 通用算法 U:[CcN/~3
#include <bitset> //STL 位集容器 %afF%y
#include <cctype> 7-\wr^ll3
#include <cerrno> :
Cli8#
#include <clocale> LCq1F(q
#include <cmath> =@X?$>'
#include <complex> //复数类 uX&h~qE/
#include <cstdio> h,b_8g{!
#include <cstdlib> NJOV!\k
#include <cstring> &4l!2
#include <ctime> (|3?wX'2U
#include <deque> //STL 双端队列容器 F5M|QX@-
#include <exception> //异常处理类 #yEkd2Vy{
#include <fstream> BuxU+
#include <functional> //STL 定义运算函数(代替运算符) Z^mQb2e.
#include <limits> 7_rDNK@e
#include <list> //STL 线性列表容器 QXEZ?gx
#include <map> //STL 映射容器 T|
R!Aw.
#include <iomanip> b!nA.`T
#include <ios> //基本输入/输出支持 lh!8u<yv*
#include <iosfwd> //输入/输出系统使用的前置声明 bQI.Qk
#include <iostream> <dz_7hR"
#include <istream> //基本输入流 t^%)d7$
#include <ostream> //基本输出流 x`'s
#include <queue> //STL 队列容器 %>y!N!.F
#include <set> //STL 集合容器 #]^M/y
h
#include <sstream> //基于字符串的流 wOrj-Smx
#include <stack> //STL 堆栈容器 l-Dg m
#include <stdexcept> //标准异常类 ft iAty0n
#include <streambuf> //底层输入/输出支持 k RSY;V
#include <string> //字符串类 r'XWt]B+[
#include <utility> //STL 通用模板类 2|`Mb~E;
#include <vector> //STL 动态数组容器 %L-{4Z!"sI
#include <cwchar> n-<`Z NMU
#include <cwctype> WM=)K1p0u
$d&7q5[
using namespace std; l
SuNZYaO
th0>u.hJ
////////////////////////////////////////////////////////////////////////// pNu?DF{
3
eQqCRXx
C99 增加 vH E:TQo4
sp0_f;bC
#include <complex.h> //复数处理 `H^
H#W
#include <fenv.h> //浮点环境 @]EdUzzKq
#include <inttypes.h> //整数格式转换 xq%BR[1
#include <stdbool.h> //布尔环境 2%`8
#include <stdint.h> //整型环境 piIGSC
#include <tgmath.h> //通用类型数学宏