• C++头文件中的各种类型


    C++中对于头文件的应用是一个比较复杂的步骤,其中有很多比较重要的内容值得我们去不断的学习。在这里我们先来为大家总结一下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> //通用类型数学宏 
  • 相关阅读:
    Python之路第一课Day1--随堂笔记
    前端面试题汇总
    全国计算机二级python备考
    小程序体检评分优化
    自己配置webpack报错总结
    npm install 报错npm WARN tar ENOENT: no such file or directory和npm ERR! cb() never called!可能的原因
    vue 里面使用sass进行代码复用mixin简单用法
    用openlayers初始化地图碰到过的 地图不显示的问题 VUE
    element el-table表格树状图全选/取消 子节点无法选中问题
    element 树形结构自定义节点图标
  • 原文地址:https://www.cnblogs.com/gosteps/p/2941768.html
Copyright © 2020-2023  润新知