登录
首页 » Visual C++ » Date

Date

于 2012-11-22 发布 文件大小:173KB
0 255
下载积分: 1 下载次数: 8

代码说明:

  用整数存储私有成员:年、月和日。为类提供构造函数,能够对各成员进行初始 化,但出现错误的初值时, 成员为2000-1-。也可以不在不提供任何初值的情况 下日期为2000-1-1。另外可以用一个Date 对象进行初始化,成员函数应实现以 下功能: (1) 对所有成员一次性赋值,也能对某个成员单独赋值,能够一次返回所有成 员的值,也能单独返回某个成员的值 (2) 可以按照mm-dd-yyyy 格式输出日期。 (3) 有成员函数nextDay(),用于将日期增加一天(Integer stored the private Members: year, month, and day. Class provides a constructor to initialize the members, but the wrong initial value, members 2000-1-. The date can also be not the case does not provide any initial value 2000-1-1. Also available on a Date object is initialized, the member function should achieve the following functions: (1) all members of the one-time assignment, can also be a member of a separate assignment, to return once the value of all the members, but also separate return a The members of the value (2) according to the date of mm-dd-yyyy format output. (3) member function nextDay () for additional day date)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • red
    红外报警程序,利用红外发射实现自动报警,当有目标靠近,发出蜂鸣名声(Infrared alarm program)
    2010-08-12 21:50:32下载
    积分:1
  • qinatuihuidai
    计算配电网络潮流 基于40节点计算配电网潮流电压及其电流 (Calculation of distribution network based on 40 tide node voltage and current power flow calculation)
    2014-05-21 11:55:03下载
    积分:1
  • RaidTest
    RAID卡的测试程序,写的不好哈,请大家原谅,(RAID card test procedures and writing bad Kazakhstan,)
    2009-02-17 11:55:56下载
    积分:1
  • suming-up-numbers-of-leapyear
    编写一段程序 统计从1000年到1999年之间闰年的个数 最后输出到屏幕上来(writing a program to sum up the numbers of leapyear between 1000 and 1999.Finally,showing the result on the screen.)
    2015-01-02 21:47:35下载
    积分:1
  • changkouLED
    通过上位机来控制LED显示的数字内容,主要是动态显示数字变化情况(Through the host computer to control the LED display digital content, mainly dynamic display of digital changes)
    2013-04-29 19:04:23下载
    积分:1
  • music-card
    本人自己编写的电子贺卡程序,带有音乐播放,和12864的图像显示(I have written an e-card program with music playback, and image display 12864)
    2014-04-18 15:31:17下载
    积分:1
  • C8051F020UCOS2
    c8051F UC/OS 开发软件。 。。。。。。。。(c8051F UC/OS software development. . . . . . . . .)
    2010-05-12 23:25:10下载
    积分:1
  • 6-res
    基于热敏电阻电路仿真 proteus 仿真 基于热敏电阻电路仿真 proteus 仿真(re min dian zu fang zhen re min dian zu fang zhen re min dian zu fang zhen re min dian zu fang zhen)
    2015-05-04 22:36:32下载
    积分:1
  • SAutoFocus01C
    单片机SCM处理信号的自动聚焦系统,利用单片机SCMM控制光学镜头,实现自动聚焦功能, (MCU SCM processing a signal automatic focusing system, the use of the microcontroller the SCMM to control the optical lens, to achieve auto-focus function,)
    2012-08-25 17:48:26下载
    积分:1
  • AD
    说明:  51单片机开发,AD转换模块 ,模数转换,高精度(51 MCU development, AD converter module, analog-to-digital conversion, high-precision)
    2012-10-13 10:03:11下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载