文件名称:cpp1
-
所属分类:
- 标签属性:
- 上传时间:2013-07-01
-
文件大小:871byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
定义一个钟表类,包括三个私有成员,分别为小时、分钟、秒,在此基础上,请重载自增运算符(++)和自减运算符(--)为类的成员函数,使得钟表类的对象能进行基于秒数的时间变化,注意自增运算符和自减运算符有前缀运算和后缀运算两种。同时要求定义带参数的构造函数,定义时间设置函数和时间显示函数。-Define a class watches, including three private members, namely hour, minute, second, on this basis, please reload increment operator (++) and decrement operator (-) for the class member functions, making WATCH objects can be based on the number of seconds of time, pay attention to increment and decrement operators Operators have the prefix and suffix computing two kinds of operations. Also require the definition of a constructor with parameters defined time setting function and time display function.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
cpp1.cpp
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
