C、传统 C++
$g+[yb7@
{=-\|(Bx
#include <assert.h> //设定插入点 uDSxTz{
#include <ctype.h> //字符处理 wqW0v\
#include <errno.h> //定义错误码 *b}lF4O?
#include <float.h> //浮点数处理 )}'U`'q
#include <fstream.h> //文件输入/输出 | j a-
#include <iomanip.h> //参数化输入/输出 i?:_:"^x
#include <iostream.h> //数据流输入/输出 [[Y0
#include <limits.h> //定义各种数据类型最值常量 JPWOPB'H
#include <locale.h> //定义本地化函数 w MP
#include <math.h> //定义数学函数 ' dx1x6
#include <stdio.h> //定义输入/输出函数 nn9wdt@.]
#include <stdlib.h> //定义杂项函数及内存分配函数 &0(
#include <string.h> //字符串处理 [.*;6y3
#include <strstrea.h> //基于数组的输入/输出 1YJC{bO
#include <time.h> //定义关于时间的函数 FH%GIi
#include <wchar.h> //宽字符处理及输入/输出 !o+_T?
#include <wctype.h> //宽字符分类 S^<g_ q
L%c0 Z@[~
////////////////////////////////////////////////////////////////////////// b2=0}~LK
*"r~-&IL
标准 C++ (同上的不再注释) <rL/B
k
lF?tQB/a
#include <algorithm> //STL 通用算法 P#/HTu5q7
#include <bitset> //STL 位集容器 h=_0+\%
#include <cctype> %8M)2?E
#include <cerrno> Io|Aj
#include <clocale> lmSo8/%T
#include <cmath> =)`
p_W
#include <complex> //复数类 9{8GP
#include <cstdio> $gM8{.!
#include <cstdlib> <K4,7J$}h
#include <cstring> ZzBQe
#include <ctime> STw#lU) %(
#include <deque> //STL 双端队列容器 S#Sb ]
#include <exception> //异常处理类 MqA`yvQm
#include <fstream> &0 BdUU+:<
#include <functional> //STL 定义运算函数(代替运算符) y&= ALx@
#include <limits> (V% `k'N7f
#include <list> //STL 线性列表容器 FSbHn{@
#include <map> //STL 映射容器 NwR}yb6
#include <iomanip> Z@%HvB7
#include <ios> //基本输入/输出支持 ;kJA'|GX
#include <iosfwd> //输入/输出系统使用的前置声明 i^!ez5z
#include <iostream> b(I2m
#include <istream> //基本输入流 PeE/iZ.
#include <ostream> //基本输出流 2kUxD8BcN
#include <queue> //STL 队列容器 F5qFYL;
#include <set> //STL 集合容器 .pvV1JA'
#include <sstream> //基于字符串的流 RTu4@7XP
#include <stack> //STL 堆栈容器 @(i!YL
#include <stdexcept> //标准异常类 a9?y`{%L
#include <streambuf> //底层输入/输出支持 ?kz+R'
#include <string> //字符串类 ^p/Ob'!
#include <utility> //STL 通用模板类 N9<Ujom
#include <vector> //STL 动态数组容器 h}Wdh1.M3
#include <cwchar> *cg(
?yg
#include <cwctype> 3TZ*RPmFRm
kY&h~Q
using namespace std; =@5x"MOz
v^7LctcVm
////////////////////////////////////////////////////////////////////////// EK$Kee}~
+EM_TTf4
C99 增加 b]JI@=s?
,*@AX>
#include <complex.h> //复数处理 NCf"tK'5n
#include <fenv.h> //浮点环境 ,xT?mt}P
#include <inttypes.h> //整数格式转换 e%>b+Sv
#include <stdbool.h> //布尔环境 A[YpcG'9
#include <stdint.h> //整型环境 *I?Eb-!t
#include <tgmath.h> //通用类型数学宏