C/C++头文件一览表
名称 |
C |
C++ |
设定插入点,验证程序断言 |
<assert.h> |
<cassert> |
字符类型 |
<ctype.h> |
<cctype> |
错误码 |
<errno.h> |
<cerrno> |
浮点环境 |
<fenv.h> |
|
浮点数类型 |
<float.h> |
<cfloat> |
整型格式转换 |
<inttypes.h> |
|
替代关系操作符宏 |
<iso646.h> |
<ciso646> |
实现常量 |
<limits.h> |
<climits> |
局部类别 |
<locale.h> |
<clocale> |
数字常量 |
<math.h> |
<cmath> |
非局部goto |
<setjmp.h> |
<csetjmp> |
信号 |
<signal.h> |
<csignal> |
可变参数表 |
<stdarg.h> |
<cstdarg> |
布尔类型和值 |
<stdbool.h> |
|
标准定义 |
<stddef.h> |
<cstddef> |
整形 |
<stdint.h> |
—— |
标准I/O库 |
<stdio.h> |
<cstdio> |
标准函数库 |
<stdlib.h> |
<cstdlib> |
字符串操作 |
<string.h> |
<cstring> |
通用类型数学宏 |
<tgmath.h> |
—— |
时间和日期 |
<time.h> |
<ctime> |
宽字符支持 |
<wchar.h> |
<cwchar> |
宽字符分类和映射支持 |
<wctype.h> |
<cwctype> |
目录项 |
<dirent.h> |
—— |
文件控制 |
<fcntl.h> |
—— |
文件名匹配类型 |
<fnmatch.h> |
—— |
路径名模式匹配类型 |
<glob.h> |
—— |
组文件 |
<grp.h> |
—— |
网络数据库操作 |
<netdb.h> |
—— |
口令文件 |
<pwd.h> |
—— |
正则表达式 |
<regx.h> |
—— |
tar归档值 |
<tar.h> |
—— |
终端I/O |
<termios.h> |
—— |
符号常量 |
<unistd.h> |
—— |
文件时间 |
<utime.h> |
—— |
字扩展类型 |
<wordexp.h> |
—— |
Internet定义 |
<arpa/inet.h> |
—— |
套接字本地接口 |
<net/if.h> |
—— |
Internet地址族 |
<netinet/in.h> |
—— |
传输控制协议 |
<netinet/tcp.h> |
—— |
内存管理声明 |
<sys/mman.h> |
—— |
select函数 |
<sys/select.h> |
—— |
套接字接口 |
<sys/socket.h> |
—— |
文件状态 |
<sys/stst.h> |
—— |
进程时间 |
<sys/times.h> |
—— |
基本系统数据类型 |
<sys/types.h> |
—— |
UNIX域套接字定义 |
<sys/un.h> |
—— |
系统名 |
<sys/utsname.h> |
—— |
进程控制 |
<sys/wait.h> |
—— |
cpio归档值 |
<cpio.h> |
—— |
动态链接 |
<dlfcn.h> |
—— |
消息显示结构 |
<fmtmsg.h> |
—— |
文件树漫游 |
<ftw.h> |
—— |
代码集转换实用程序 |
<iconv.h> |
—— |
语言信息常量 |
<langinfo.h> |
—— |
模式匹配函数定义 |
<libgen.h> |
—— |
货币类型 |
<monetary.h> |
—— |
数据库操作 |
<ndbm.h> |
—— |
消息类别 |
<nl_types.h> |
—— |
轮询函数 |
<poll.h> |
—— |
搜索表 |
<search.h> |
—— |
字符串操作 |
<strings.h> |
—— |
系统出错日志记录 |
<syslog.h> |
—— |
用户上下文 |
<ucontext.h> |
—— |
用户限制 |
<ulimit.h> |
—— |
用户账户数据库 |
<utmpx.h> |
—— |
IPC |
<sys/ipc.h> |
—— |
消息队列 |
<sys/msg.h> |
—— |
资源操作 |
<sys/resourcce.h> |
—— |
信号量 |
<sys/sem.h> |
—— |
共享存储 |
<sys/shm.h> |
—— |
文件系统信息 |
<sys/statvfs.h> |
—— |
时间类型 |
<sys/time.h> |
—— |
附加的时间 |
<sys/timeb.h> |
—— |
矢量I/O操作 |
<sys/uio.h> |
—— |
异步I/O |
<aio.h> |
—— |
消息队列 |
<mqueue.h> |
—— |
执行调度 |
<sched.h> |
—— |
信号量 |
<semaphore.h> |
—— |
XSI STREAMS接口 |
<stropts.h> |
—— |
时间跟踪 |
<trace.h> |
—— |
DOS控制台输入输出 |
<conio.h> |
—— |
字符串库函数说明 |
<sio.h> |
—— |
动态存储与释放 |
<slib.h> |
—— |
STL通用算法 |
—— |
<algorithm> |
STL位集容器 |
—— |
<bitset> |
复数类 |
—— |
<complex> |
STL双端队列容器 |
—— |
<deque> |
参数化输入输出 |
—— |
<iomanip> |
基本输入输出 |
—— |
<ios> |
异常处理类 |
—— |
<exception> |
文件流 |
—— |
<fstream> |
输入/输出前置声明 |
—— |
<iosfwd> |
数据流输入/输出 |
—— |
<iostream> |
基本输入流 |
—— |
<istream> |
基本输出流 |
—— |
<ostream> |
遍历序列的类 |
—— |
<iterator> |
各种数据类型最值常量 |
—— |
<limits> |
STL线性列表容器 |
—— |
<list> |
国际化支持 |
—— |
<locale> |
STL映射容器 |
—— |
<map> |
专用内存分配器 |
—— |
<memory> |
基本内存分配和释放 |
—— |
<new> |
通用的数字操作 |
—— |
<numeric> |
STL队列容器 |
—— |
<queue> |
STL集合容器 |
—— |
<set> |
基于字符串的流 |
—— |
<sstream> |
STL堆栈容器 |
—— |
<stack> |
标准异常类 |
—— |
<stdexcept> |
iostream的缓冲区类 |
—— |
<streambuf> |
字符串类 |
—— |
<string> |
非内存字符序列的流类 |
—— |
<strstream> |
运行时类型标识 |
—— |
<typeinfo> |
STL通用模板类 |
—— |
<utility> |
支持值数组的类和模板类 |
—— |
<valarray> |
STL动态数组容器 |
—— |
<vector> |