C、传统 C++ sl|s#+Z
wRb%-s
#include <assert.h> //设定插入点 7CUu:6%
#include <ctype.h> //字符处理 * 103
#include <errno.h> //定义错误码 BHn`e~
#include <float.h> //浮点数处理 >5wA B
#include <fstream.h> //文件输入/输出 jpyV52
#include <iomanip.h> //参数化输入/输出 R B.j@*
#include <iostream.h> //数据流输入/输出 u#%Ig3
#include <limits.h> //定义各种数据类型最值常量 |8&AsQd
#include <locale.h> //定义本地化函数 p+;Re2Uyg
#include <math.h> //定义数学函数 5}9-)\8=z
#include <stdio.h> //定义输入/输出函数 :q~qRRmjBe
#include <stdlib.h> //定义杂项函数及内存分配函数 c }ivYH?`w
#include <string.h> //字符串处理 yk#yrxM
#include <strstrea.h> //基于数组的输入/输出 qyUcjc%[
#include <time.h> //定义关于时间的函数 p*!@z|F>U
#include <wchar.h> //宽字符处理及输入/输出 YS?P A#
#include <wctype.h> //宽字符分类 NmST1pMk
= Ii@-C
////////////////////////////////////////////////////////////////////////// i2.y)K)
2iI"|k9M
标准 C++ (同上的不再注释) ogMLv}
*]z.BZI:
#include <algorithm> //STL 通用算法 {d}-SoxH
#include <bitset> //STL 位集容器 I"Ji_4QV
#include <cctype> /`hr)
#include <cerrno> p]`pUw{
#include <clocale> J=*y>Zt-b
#include <cmath> g}Hk4+
#include <complex> //复数类 OnH>g"
#include <cstdio> p1v:X?
#include <cstdlib> 0-0 )E&2
#include <cstring> #"ayq,GC<
#include <ctime> |/arxb&
#include <deque> //STL 双端队列容器 aen(Mcd3bg
#include <exception> //异常处理类 8 jqt=}b
#include <fstream> 2P$l XGjh
#include <functional> //STL 定义运算函数(代替运算符) 5YC56,X
#include <limits> I.R3?+tZ
#include <list> //STL 线性列表容器 10}oaL S
#include <map> //STL 映射容器 PZNo.0M70
#include <iomanip> vbqI$F[s
#include <ios> //基本输入/输出支持 |{PQ0DS
#include <iosfwd> //输入/输出系统使用的前置声明 E2(;R!ML#
#include <iostream> -c<<A.X
#include <istream> //基本输入流 @M#2T
#include <ostream> //基本输出流 D> Z>4:EM
#include <queue> //STL 队列容器 Q+mMpI
#include <set> //STL 集合容器 ZyCAl9{p
#include <sstream> //基于字符串的流 P.qD,$-
#include <stack> //STL 堆栈容器 R|V<2
#include <stdexcept> //标准异常类 G&D N'bp
#include <streambuf> //底层输入/输出支持 E=~H,~
#include <string> //字符串类 dr~MyQ
#include <utility> //STL 通用模板类 GOJi/R.{
#include <vector> //STL 动态数组容器 m80+b8b
#include <cwchar> ~Zl`Ap
#include <cwctype> r4+w?=`
Ez?vJDd
using namespace std; :FG}k Y
T~"tex]
////////////////////////////////////////////////////////////////////////// oCy52Bm.!
HZ8
j[kO
C99 增加 UgJlXB|a%2
~(aq3ngo.
#include <complex.h> //复数处理 ejgg.G ^
#include <fenv.h> //浮点环境 Z ;%
#include <inttypes.h> //整数格式转换 IL.Jx:(0
#include <stdbool.h> //布尔环境 m6 hA,li
#include <stdint.h> //整型环境 >-X&/i
#include <tgmath.h> //通用类型数学宏