文件名称:exercise2
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.2kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
2. 创建一个Message类,其构造函数带有一个string类型的默认参数。创建一个string类型的私有成员,在构造函数中只是简单地把参数赋值给内部的私有成员。创建两个重载的成员函数print() ,一个不带参数,而只是显示存储在对象中私有成员的信息,另一个带有string类型参数,它将显示该参数加上对象内私有成员的信息。- Create a macro was not found, the constructor moves with a type of default parameters. Create a type of private members, moves in the constructor simply put the parameter to internal private members. Create two overloaded member function locate 14, 20: print (), Don t take a parameter, and only show stored in the object of private information, another type parameters, it moves with the parameters of the objects that will add private members within the information.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
exercise2/CMakeLists.txt
exercise2/Message.cpp
exercise2/message.h
exercise2
exercise2/Message.cpp
exercise2/message.h
exercise2
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。