文件名称:clock
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.51kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
设计一个时钟类Clock。数据成员包括hour(小时)、minute(分钟)、second(秒)。要求用成员函数实现以下功能:
(1)创建具有指定时钟(小时、分钟、秒)的Clock对象,默认时钟为00:00:00。
(2)动态地设置时、分、秒。
(3)在屏幕上按“时:分:秒”的格式显示时钟。
(4)在主函数中测试该类。-Designs clock class Clock. Data member including hour (hour), minute (minute), second (second). The request realizes following function with the member function:
(1) founds has assigns the clock (hour, minute, second) the Clock object, tacitly approves the clock is 00:00:00.
(2) dynamic establishes, divides, the second.
(3) presses on the screen “time: Minute: Second” form demonstration clock.
(4) tests this kind in the main function.
(1)创建具有指定时钟(小时、分钟、秒)的Clock对象,默认时钟为00:00:00。
(2)动态地设置时、分、秒。
(3)在屏幕上按“时:分:秒”的格式显示时钟。
(4)在主函数中测试该类。-Designs clock class Clock. Data member including hour (hour), minute (minute), second (second). The request realizes following function with the member function:
(1) founds has assigns the clock (hour, minute, second) the Clock object, tacitly approves the clock is 00:00:00.
(2) dynamic establishes, divides, the second.
(3) presses on the screen “time: Minute: Second” form demonstration clock.
(4) tests this kind in the main function.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
clock/
clock/新建 文本文档.txt
clock/新建文件夹/
clock/新建 文本文档.txt
clock/新建文件夹/
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.