在 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>
C++ 标准呢?
最佳答案
33 个 C++ 特定的:
<algorithm> <iomanip> <list> <queue> <streambuf>
<bitset> <ios> <locale> <set> <string>
<complex> <iosfwd> <map> <sstream> <typeinfo>
<deque> <iostream> <memory> <stack> <utility>
<exception> <istream> <new> <stdexcept> <valarray>
<fstream> <iterator> <numeric> <strstream> <vector>
<functional> <limits> <ostream>
加上从 C 借来的 18:
<cassert> <ciso646> <csetjmp> <cstdio> <ctime>
<cctype> <climits> <csignal> <cstdlib> <cwchar>
<cerrno> <clocale> <cstdarg> <cstring> <cwctype>
<cfloat> <cmath> <cstddef>
(<iso646.h>
、<wchar.h>
和 <wctype.h>
于 1995 年添加到 C 标准中)
关于c++ - c++标准中有多少个头文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3940013/