文件名称:time-type
-
所属分类:
- 标签属性:
- 上传时间:2013-06-05
-
文件大小:906byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
定义如下时间类TimeType,要求完成各个成员函数,并写主函数进行验证。
class TimeType{
int h,m,s
public:
TimeType(int h0=0,m0=0,s0=0) //构造函数
void increSec(int sec) //增加若干秒
void increMin(int min) //增加若干分钟
void increHou(int hou) //增加若干小时
bool equal(TimeType t2) //判断两个时间是否相等
void printTime() //输出时间对象的时分秒
} -Defined as time classes TimeType, required to complete each member function and write the main function for authentication. class TimeType {int h, m, s public: TimeType (int h0 = 0, m0 = 0, s0 = 0) //Constructor void increSec (int sec) //add several seconds void increMin (int min) //increase the number of minutes void increHou (int hou) //add several hours bool equal (TimeType t2) //judge two times are equal void printTime () // output time object, hour}
class TimeType{
int h,m,s
public:
TimeType(int h0=0,m0=0,s0=0) //构造函数
void increSec(int sec) //增加若干秒
void increMin(int min) //增加若干分钟
void increHou(int hou) //增加若干小时
bool equal(TimeType t2) //判断两个时间是否相等
void printTime() //输出时间对象的时分秒
} -Defined as time classes TimeType, required to complete each member function and write the main function for authentication. class TimeType {int h, m, s public: TimeType (int h0 = 0, m0 = 0, s0 = 0) //Constructor void increSec (int sec) //add several seconds void increMin (int min) //increase the number of minutes void increHou (int hou) //add several hours bool equal (TimeType t2) //judge two times are equal void printTime () // output time object, hour}
(系统自动生成,下载前可以参看下载内容)
下载文件列表
time type.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.