登录
首页 » Visual C++ » Date

Date

于 2012-11-22 发布 文件大小:173KB
0 233
下载积分: 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 个回复

  • Desktop
    跑马灯设计,主要是利用51单片机完成跑马灯的设计(Marquee design)
    2012-09-18 21:59:36下载
    积分:1
  • keil-for-arm-MDK5.11A
    keil 5.11a专业版注册机 (通用版) 破解工具,可以破解专业版,已亲手实验。(keil 5.11a crack tool, you can crack the professional version, has personally experiment.)
    2014-07-23 09:58:41下载
    积分:1
  • DL645
    电力系统电度表通讯协议,主要针对DL645协议标准(Power system meter communication protocol, mainly for DL645 protocol standards)
    2013-10-23 22:13:10下载
    积分:1
  • 2401SPI3
    SPI3完整代码适用2401的2.4G通信(SPI3 complete code for 2401 of 2.4 G communication SPI3 complete code for 2401 of 2.4 G communications)
    2014-09-12 08:46:13下载
    积分:1
  • C8051F020UCOS2
    c8051F UC/OS 开发软件。 。。。。。。。。(c8051F UC/OS software development. . . . . . . . .)
    2010-05-12 23:25:10下载
    积分:1
  • CH372
    本节所给出主程序功能为51单片机从USB总线读取两个字节数据,计算两个数据的和。另外本文还给出了CH372的主端点、辅助端点之间数据上传下传的子程序,供读者参考。(The main function of this section is given as 51 microcontroller reads the two bytes of data the USB bus, two data and computing. This article also gives additional primary endpoint between the auxiliary endpoints CH372 Uploaded data transfer routines, for reference)
    2015-11-01 14:26:14下载
    积分:1
  • LIS3LV02DQ
    加速度传感器很好用的,,可以移植的,你可以学习下,写的也不容易呢(Using an acceleration sensor,, you can refer to him,, a good, satisfying transplant)
    2015-11-09 20:14:37下载
    积分:1
  • RCC_JJY
    日本电波钟解码程序 接受长波信号并进行解码(JJY code)
    2013-12-07 22:16:19下载
    积分:1
  • M16-NRF2401
    nrf2401M16无线模块开发案例,很实用哦(nrf2401 wireless module development case)
    2011-09-21 23:42:33下载
    积分:1
  • Key
    msp430f149按键程序,非常完整,带中断,输入,输出(msp430f149 key procedures)
    2014-06-13 15:06:31下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载