文件名称:cpp1
介绍说明--下载内容均来自于网络,请自行研究使用
定义一个钟表类,包括三个私有成员,分别为小时、分钟、秒,在此基础上,请重载自增运算符(++)和自减运算符(--)为类的成员函数,使得钟表类的对象能进行基于秒数的时间变化,注意自增运算符和自减运算符有前缀运算和后缀运算两种。同时要求定义带参数的构造函数,定义时间设置函数和时间显示函数。-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