C、传统 C++ On#RYy^}
YcT!`B
#include <assert.h> //设定插入点 &ciU`//`
#include <ctype.h> //字符处理 ]k5l]JB
#include <errno.h> //定义错误码 8I3"68c_a
#include <float.h> //浮点数处理 <S%M*j
#include <fstream.h> //文件输入/输出 -Y{P"!p0
#include <iomanip.h> //参数化输入/输出 ZEp UHdin
#include <iostream.h> //数据流输入/输出 IA!( 'Ks
#include <limits.h> //定义各种数据类型最值常量 -ZBk^p
#include <locale.h> //定义本地化函数 L+bU~N,+A
#include <math.h> //定义数学函数 s7#w5fe
#include <stdio.h> //定义输入/输出函数 @u#Tx%
#include <stdlib.h> //定义杂项函数及内存分配函数 EJ"[{AV
#include <string.h> //字符串处理 # KK>D?.:
#include <strstrea.h> //基于数组的输入/输出 8" XbW7 ^o
#include <time.h> //定义关于时间的函数 5Jlz$]f
#include <wchar.h> //宽字符处理及输入/输出 Z[s{
#include <wctype.h> //宽字符分类 kTt;3 Ia
~bhesWk8!
////////////////////////////////////////////////////////////////////////// q3#07o_dV
kK>PFk(
标准 C++ (同上的不再注释) P'xq+Q
ojni+} >_
#include <algorithm> //STL 通用算法 9;NR
#include <bitset> //STL 位集容器 p=V (_
#include <cctype> vE^Hk!^
#include <cerrno> L]I)E`s
#include <clocale> );'8*e'
#include <cmath> C AVqjT7
#include <complex> //复数类 ^W{+?q'
#include <cstdio> iZyhj%#
#include <cstdlib> LcI,Dy|P
#include <cstring> -$!`8[fM
#include <ctime> ayTEQS
#include <deque> //STL 双端队列容器 R&PQU/t)
#include <exception> //异常处理类 4Bsx[~ u&
#include <fstream> HeCQF=R
#include <functional> //STL 定义运算函数(代替运算符) B0T[[%~3M
#include <limits> =0c yGo
#include <list> //STL 线性列表容器 -y;SR+
#include <map> //STL 映射容器 -L}crQl.'c
#include <iomanip> hlWTsi4N
#include <ios> //基本输入/输出支持 Xkk m~sM6
#include <iosfwd> //输入/输出系统使用的前置声明 :)_Ap{9J
#include <iostream> X!Xl
#include <istream> //基本输入流 ?KDI'>"-v
#include <ostream> //基本输出流 n(\5Z&
#include <queue> //STL 队列容器 X!KjRP\\
#include <set> //STL 集合容器 sluR@[l
#include <sstream> //基于字符串的流 -Zh`h8gX
#include <stack> //STL 堆栈容器 *"2TT})
#include <stdexcept> //标准异常类 l_Mi'}j
#include <streambuf> //底层输入/输出支持 ' !>t( Sa
#include <string> //字符串类 L}7c{6!F7
#include <utility> //STL 通用模板类 N&n2\Y
#include <vector> //STL 动态数组容器 /~Zxx}<;
#include <cwchar> icLf;@
#include <cwctype> c;C:$B7
)/A IfH
using namespace std; |#fqHON
3R>U^
Y
////////////////////////////////////////////////////////////////////////// HdQd =q(
~_OtbNj#
C99 增加 `VM@-;@w
!)FM/Xj,o
#include <complex.h> //复数处理 8pp^
w
#include <fenv.h> //浮点环境 7vax[,aI
#include <inttypes.h> //整数格式转换 t`1E4$Bb\
#include <stdbool.h> //布尔环境 C%}}~Y
#include <stdint.h> //整型环境 o*& D;
#include <tgmath.h> //通用类型数学宏