C++头文件中包含哪些内容

发布时间:2021-07-19 17:57:28 作者:Leah
来源:亿速云 阅读:126

C++头文件中包含哪些内容,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。

C++头文件之C、传统 C++

  1. #include < assert.h>//设定插入点   

  2. #include < ctype.h> //字符处理   

  3. #include < errno.h> //定义错误码   

  4. #include < float.h> //浮点数处理   

  5. #include < fstream.h>  //文件输入/输出   

  6. #include < iomanip.h>  //参数化输入/输出   

  7. #include < iostream.h> //数据流输入/输出   

  8. #include < limits.h>//定义各种数据类型最值常量   

  9. #include < locale.h>//定义本地化函数   

  10. #include < math.h> //定义数学函数   

  11. #include < stdio.h> //定义输入/输出函数   

  12. #include < stdlib.h>//定义杂项函数及内存分配函数   

  13. #include < string.h>//字符串处理   

  14. #include < strstrea.h> //基于数组的输入/输出   

  15. #include < time.h> //定义关于时间的函数   

  16. #include < wchar.h> //宽字符处理及输入/输出   

  17. #include < wctype.h>//宽字符分类  

C++头文件之标准 C++ (同上的不再注释)

  1. #include < algorithm>  //STL 通用算法   

  2. #include < bitset> //STL 位集容器   

  3. #include < cctype>   

  4. #include < cerrno>   

  5. #include < clocale>   

  6. #include < cmath>   

  7. #include < complex> //复数类   

  8. #include < cstdio>   

  9. #include < cstdlib>   

  10. #include < cstring>   

  11. #include < ctime>   

  12. #include < deque>  //STL 双端队列容器   

  13. #include < exception>  //异常处理类   

  14. #include < fstream>   

  15. #include < functional> //STL 定义运算函数(代替运算符)   

  16. #include < limits>   

  17. #include < list>//STL 线性列表容器   

  18. #include < map> //STL 映射容器   

  19. #include < iomanip>   

  20. #include < ios> //基本输入/输出支持   

  21. #include < iosfwd> //输入/输出系统使用的前置声明   

  22. #include < iostream>   

  23. #include < istream> //基本输入流   

  24. #include < ostream> //基本输出流   

  25. #include < queue>  //STL 队列容器   

  26. #include < set> //STL 集合容器   

  27. #include < sstream> //基于字符串的流   

  28. #include < stack>  //STL 堆栈容器   

  29. #include < stdexcept>  //标准异常类   

  30. #include < streambuf>  //底层输入/输出支持   

  31. #include < string> //字符串类   

  32. #include < utility> //STL 通用模板类   

  33. #include < vector> //STL 动态数组容器   

  34. #include < cwchar>   

  35. #include < cwctype>   

  36. using namespace std;  

C++头文件之C99 增加

  1. #include < complex.h> //复数处理   

  2. #include < fenv.h>//浮点环境   

  3. #include < inttypes.h>//整数格式转换   

  4. #include < stdbool.h> //布尔环境   

  5. #include < stdint.h> //整型环境   

  6. #include < tgmath.h> //通用类型数学宏  

关于C++头文件中包含哪些内容问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注亿速云行业资讯频道了解更多相关知识。

推荐阅读:
  1. C++中头文件设计
  2. C/C++函数重复定义、头文件重复包含、互相包含问题

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

c++

上一篇:firefox然后关闭javascript

下一篇:python中PaddleOCR库的用法

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》