
C++学习---类
zhangyongjun_2012
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
c plus template
Template Before this , we always define a function or class to do same operations with variables from fixed type. when type changed, we should define another function or class to do it. Template pr原创 2013-06-09 19:42:10 · 742 阅读 · 0 评论 -
c plus STL and vector
STL(Standard Template Library) STL is a c plus software library that influenced many parts of the C++ Standard Library.It provides four components, which called algorithms, containers, functors, and原创 2013-06-09 21:00:57 · 918 阅读 · 0 评论 -
C++构造函数重载以及默认参数引起的二义性
大家都知道当我们声明一个类时,系统会提供一个默认构造函数。当我们需要提供参数进行对类数据成员进行初始化时,就需要对类的带参构造函数进行重载。同时,如果我们需要调用默认构造函数进行类数据成员的初始化时,还需要对类的默认构造函数进行重载。也许就在这一块,我们很多人都遇到过同样的错误: 当我们给出一个带默认参数的构造函数,并且重载一个默认构造函数,当我们定义一个类对象时,如果不传递参数,会出现原创 2013-06-11 19:13:51 · 6044 阅读 · 0 评论