C/C++头文件一览

2016-02-19 20:51 2 1 收藏

下面请跟着图老师小编一起来了解下C/C++头文件一览,精心挑选的内容希望大家喜欢,不要忘记点个赞哦!

【 tulaoshi.com - 编程语言 】

传统 C++
  
  #include assert.h  //设定插入点  #include ctype.h//字符处理
  
  #include errno.h//定义错误码 !-- frame contents -- !-- /frame contents --   #include float.h//浮点数处理
  
  #include fstream.h//文件输入/输出
  
  #include iomanip.h//参数化输入/输出
  
  #include iostream.h   //数据流输入/输出
  
  #include limits.h  //定义各种数据类型最值常量
  
  #include locale.h  //定义本地化函数
  
  #include math.h   //定义数学函数
  
  #include stdio.h   //定义输入/输出函数
  
  #include stdlib.h  //定义杂项函数及内存分配函数
  
  #include string.h  //字符串处理
  
  #include strstrea.h   //基于数组的输入/输出
  
  #include time.h   //定义关于时间的函数
  
  #include wchar.h   //宽字符处理及输入/输出
  
  #include wctype.h  //宽字符分类
  
  
  标准 C++ (同上的不再注释)
  
  #include algorithm    //STL 通用算法
  
  #include bitset   //STL 位集容器
  
  #include cctype
  
  #include cerrno
  
  #include clocale
  
  #include cmath
  
  #include complex   //复数类
  
  #include cstdio
  
  #include cstdlib
  
  #include cstring
  
  #include ctime
  
  #include deque    //STL 双端队列容器
  
  #include exception    //异常处理类
  
  #include fstream
  
更多内容请看C/C++技术专题专题,或
  #include functional   //STL 定义运算函数(代替运算符)
  
  #include limits
  
  #include list  //STL 线性列表容器
  
   !-- frame contents -- !-- /frame contents --   #include map   //STL 映射容器
  
  #include iomanip
  
  #include ios   //基本输入/输出支持
  
  #include iosfwd   //输入/输出系统使用的前置声明
  
  #include iostream
  
  #include istream   //基本输入流
  
  #include ostream   //基本输出流
  
  #include queue    //STL 队列容器
  
  #include set   //STL 集合容器
  
  #include sstream   //基于字符串的流
  
  #include stack    //STL 堆栈容器  
  
  
  #include stdexcept    //标准异常类
  
  #include streambuf    //底层输入/输出支持
  
  #include string   //字符串类
  
  #include utility   //STL 通用模板类
  
  #include vector   //STL 动态数组容器
  
  #include cwchar
  
  #include cwctype
  
  using namespace std;
  
  
  C99 增加
  
  #include    //复数处理
  #include   //浮点环境
  #include   //整数格式转换
  #include    //布尔环境
  #include    //整型环境
  #include    //通用类型数学宏
更多内容请看C/C++技术专题专题,或

来源:https://www.tulaoshi.com/n/20160219/1624704.html

延伸阅读
Stephan Lavavej提出了一个非常有趣也很尖锐的问题:“C++的未来在哪里?” 这个问题是有解的。没有哪个语言会成为永恒,不是吗?(尽管C语言现在依旧生气勃勃)我不希望C++在2017年,或者甚至在2057年也依然那么有活力。在计算机行业,50年已经是一个几乎不可思议的时间了;虽然到今年为止,晶体管已有60年的历史。所以,在我问“C++的未来在哪...
    富有活力的语言需要不断改变和成长,C++也不例外。在本文中,Bjarne Stroustrup提出了自己对C++的设计和演化的看法。 !-- frame contents -- !-- /frame contents -- 为了让编译器、工具和类库实现者跟上节奏,让用户吸收标准C++所支持的编程技术,在早有预计的、沉寂了几年之后,委员会再次考虑...
标签: 计算机语言
要点1: 很多C++程序员还在使用而不是用更新的标准的库。这两者都有什么不同呢?首先,5年前我们就开始反对把.h符号继续用在标准的头文件中。继续使用过时的规则可不是个好的方法。从功能性的角度来讲,包含了一系列模板化的I/O类,相反地只仅仅是支持字符流。另外,输入输出流的C++标准规范接口在一些微妙的细节上都已改进,因此,和在接...
   持久对象 (persistent objects)广泛应用于游戏、分布式数据库系统、多媒体以及图形应用程序中。目前C++并不直接支持持久性(persistence)(但有一些在C++未来版本中添加持久性和反射(reflection)的建议)。 !-- frame contents -- !-- /frame contents -- 持久对象可以在创建它的程序的作用域之外保持自身状态。...
1.引言 !-- frame contents -- !-- /frame contents -- 还记得当年学数学、英语都有个窍门,那就是搞个错题集。经常复习一下这个错题集,就可以避免下次犯同样的错误。而几乎所有的程序员都是从犯错误开始的,我们也很有必要总结一下编程新手的常见错误,本文的目的在于此。文中所列出的都是笔者在项目开发中接...

经验教程

782

收藏

70
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部