登录
首页 » Visual C++ » Date

Date

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

  • CCU6
    很适合英飞凌单片机的初学者,可作为初学者的很好的参考资料。(Infineon microcontroller is suitable for beginners, as a good reference for beginners.)
    2015-02-04 09:39:57下载
    积分:1
  • 1.kdh
    基于AVR单片机的挖掘机器人控制系统设计( Based on AVR monolithic integrated circuit s excavation robot control system design )
    2011-05-25 18:37:39下载
    积分:1
  • LEDtest
    利用单片机作为芯片,利用点阵按钮通过继电器控制LED灯(Using single chip microcomputer as a chip, using bitmap button by relay control LED lights)
    2013-08-22 10:32:00下载
    积分:1
  • 905--
    nrf905 接收机程序 89C52 验证通过 绝对好使(nrf905 receiver program 89C52 verified through absolutely so)
    2013-08-13 11:29:01下载
    积分:1
  • SD-card
    MSP430F149控制SD卡读写操作,支持FAT16文件系统(The MSP430F149 Control SD card read and write operations to support the FAT16 file system)
    2013-05-15 10:09:44下载
    积分:1
  • 12864
    使用红外遥控调整时间并用12864液晶显示的王年丽时钟程序(Infrared remote control 12864 to show big clock)
    2015-07-16 11:01:27下载
    积分:1
  • digital-thermometer
    利用数字温度传感器DS18B20与单片机结合来测量温度控制器,使用单片机AT89C51,测温传感器使用DS18B20,用3位共阳极LED数码管以串口传送数据,实现温度显示。(Binding to measure the temperature controller, using the AT89C51 microcontroller, DS18B20 temperature sensors, with a common anode three LED digital serial transmission of data to achieve using a digital temperature display and temperature sensor DS18B20 microcontroller.)
    2020-06-26 15:40:02下载
    积分:1
  • digital
    基于单片机STC89C51和74LS164的多功能数字万用表(Based on microcontroller STC89C51 and 74 ls164 multi-function digital multimeter)
    2013-08-29 22:40:03下载
    积分:1
  • MCUchip
    单片机常用芯片手册,非常实用,初学者适合(Commonly used single-chip chip manual, very practical, suitable for beginners)
    2009-03-09 19:48:44下载
    积分:1
  • hjghjgjghg
    单片机课程设计 电子压力器的工作原理 电子压力器由压力传感器,A/D转换器,数码显示等组成。 (MCU Design pressure of the working principle electronic pressure is controlled by electronic pressure sensor, A/D converter, digital display and other components.)
    2011-05-27 16:47:18下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载