C89 15个
<assert.h> <locale.h> <stddef.h>
<ctype.h> <math.h> <stdio.h>
<errno.h> <setjmp.h> <stdlib.h>
<float.h> <signal.h> <string.h>
<limits.h> <stdarg.h> <time.h>
C99 共24个
B.1 Diagnostics <assert.h>
B.2 Complex <complex.h>
B.3 Character handling <ctype.h>
B.4 Errors <errno.h>
B.5 Floating-point environment <fenv.h>
B.6 Characteristics of floating types <float.h>
B.7 Format conversion of integer types <inttypes.h>
B.8 Alternative spellings <iso646.h>
B.9 Sizes of integer types <limits.h>
B.10 Localization <locale.h>
B.11 Mathematics <math.h>
B.12 Nonlocal jumps <setjmp.h>
B.13 Signal handling <signal.h>
B.14 Variable arguments <stdarg.h>
B.15 Boolean type and values <stdbool.h>
B.16 Common definitions <stddef.h>
B.17 Integer types <stdint.h>
B.18 Input/output <stdio.h>
B.19 General utilities <stdlib.h>
B.20 String handling <string.h>
B.21 Type-generic math <tgmath.h>
B.22 Date and time <time.h>
B.23 Extended multibyte/wide character utilities <wchar.h>
B.24 Wide character classification and mapping utilities <wctype.h>
83年 ANSI 年制定ANSI C
87年 ANSI 年公布新标准87 ANSI C 15个头文件
90年 ISO 接受ANSI C为 ISO C 15个头文件
95年 ISO 增加3个头文件 18个头文件
99年 ISO 增加6个头文件 24个头文件
11年 ISO 增加5个头文件 29个头文件
目前流行的C编译器多是以ANCI C标准为基础开发的。15个C标准头文件说的就是87ANCI C的15个标准头文件
常用的头文件如下 :
#include <ctype.h> //字符处理
#include <errno.h> //定义错误码
#include <float.h> //浮点数处理
#include <fstream.h> //文件输入/输出
#include <iomanip.h> //参数化输入/输出
#include <iostream.h> //数据流输入/输出
#include <stdio.h> //定义输入/输出函数
#include <stdlib.h> //定义杂项函数及内存分配函数
#include <string.h> //字符串处理
#include <strstrea.h> //基于数组的输入/输出
#include <time.h> //定义关于时间的函数
#include <wchar.h> //宽字符处理及输入/输出
#include <wctype.h> //宽字符分类
#include <assert.h> //设定插入点
#include <limits.h> //定义各种数据类型最值常量
#include <locale.h> //定义本地化函数
#include <math.h> //定义数学函数