C、传统 C++ 4-Cca
@t<KS&
#include <assert.h> //设定插入点 S F&EVRv
#include <ctype.h> //字符处理 l|5;&(Y+s
#include <errno.h> //定义错误码 Wd]MwDcO
#include <float.h> //浮点数处理 T9&bY>f?
#include <fstream.h> //文件输入/输出 -1c{Jo
#include <iomanip.h> //参数化输入/输出 #Iwxt3K
#include <iostream.h> //数据流输入/输出 !7jVKI80
#include <limits.h> //定义各种数据类型最值常量 lq}g*ih
#include <locale.h> //定义本地化函数 \2VYDBi?|
#include <math.h> //定义数学函数 :XeRc"m<
#include <stdio.h> //定义输入/输出函数 U['|t<^uf
#include <stdlib.h> //定义杂项函数及内存分配函数 iuS*Vw
#include <string.h> //字符串处理 I"bz6t\~|
#include <strstrea.h> //基于数组的输入/输出 ?"L ^0%
#include <time.h> //定义关于时间的函数 2^4OaHY88
#include <wchar.h> //宽字符处理及输入/输出 0.
mS^g,M-
#include <wctype.h> //宽字符分类 g~]?6;uu
.+$ox-EK8
////////////////////////////////////////////////////////////////////////// vnD `+y
'rDai[
标准 C++ (同上的不再注释) (.N!(;G
jCp`woV
#include <algorithm> //STL 通用算法 9q_c`
#include <bitset> //STL 位集容器 .vWwYG
#include <cctype> Q$8&V}jVW
#include <cerrno> yrQfPR
#include <clocale> ]1&}L^a
#include <cmath> h"t\x}8qq
#include <complex> //复数类 { {@*
#include <cstdio> l" +q&3Zx
#include <cstdlib> y87oW_"h
#include <cstring> Lf+"Gp
#include <ctime> P9jPdls
#include <deque> //STL 双端队列容器 oUx%ra{
#include <exception> //异常处理类 g[$4a4X
#include <fstream> ]'5 G/H5?;
#include <functional> //STL 定义运算函数(代替运算符) Usq.'y/o
#include <limits> {pk]p~
#include <list> //STL 线性列表容器 ][`% vj9r
#include <map> //STL 映射容器 @^Yr=d ba
#include <iomanip> ;bRyk#
#include <ios> //基本输入/输出支持 v:?l C<,
#include <iosfwd> //输入/输出系统使用的前置声明 ]8CgHT[^7
#include <iostream> f[wxt n'r
#include <istream> //基本输入流 a6!|#rt
#include <ostream> //基本输出流 ':!aFMj^
#include <queue> //STL 队列容器 I'0{Q`}
#include <set> //STL 集合容器 }No8t o
#include <sstream> //基于字符串的流 R'Uf#.
#include <stack> //STL 堆栈容器 Cf>(,rt};
#include <stdexcept> //标准异常类 3@\J#mR
#include <streambuf> //底层输入/输出支持 $rm/{i_7
#include <string> //字符串类 58P[EMhL
#include <utility> //STL 通用模板类 8\Bb7*
#include <vector> //STL 动态数组容器 @7K(_Wd
#include <cwchar> L :Ldk
#include <cwctype> vn4z C
(9Q@I8}Iy
using namespace std; ~3Y4_b5E
gUY~
l= c
////////////////////////////////////////////////////////////////////////// T{)_vQ
i!EAs`$o`
C99 增加 |=AaGJx
U1O8u -X
#include <complex.h> //复数处理 9;NXzO27
#include <fenv.h> //浮点环境 Up5 |tx7
#include <inttypes.h> //整数格式转换 dozC[4mF
#include <stdbool.h> //布尔环境 9e Fj+
#include <stdint.h> //整型环境 >:HmIW0PLe
#include <tgmath.h> //通用类型数学宏