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> //通用类型数学宏 

posted on 2013-03-03 18:37  song2013  阅读(603)  评论(0)    收藏  举报

导航