登录
首页 » Visual C++ » Date

Date

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

  • comtest
    串口通信传输与接收。既:发送一个字节到MCU,再由MCU发回来。(Serial communication transmission and reception. Bothto send a byte to the MCU, and then sent back by the MCU.)
    2012-05-31 15:56:15下载
    积分:1
  • byqh
    一个变压器保护的程序,是配电变电所内的保护程序(A transformer protection program, is within the power distribution substation protection program)
    2010-07-07 10:44:00下载
    积分:1
  • Carrier_0_03.tar
    CARRIER todo esto es un documento elaborado con la mayora facilidad
    2013-12-14 04:43:26下载
    积分:1
  • ADC0832
    使用ADC0832和STC89C51单片机实现AD采集(Using ADC0832 and STC89C51 microcontroller AD collection )
    2016-03-15 22:33:05下载
    积分:1
  • 12
    基于单片机的电阻测量系统,带vb上位机控制和显示同时还有无线发射(MCU-based resistance measurement system with vb PC control and display as well as a wireless transmitter)
    2014-02-22 15:14:06下载
    积分:1
  • My-clock
    本程序为单片机红外遥控液晶万年历程序。本程序包括ds1302时钟部分,ds18b20部分,红外遥控等部分(The program for the infrared remote control MCU LCD calendar program. The program including of ds1302 clock parts, ds18b20 part, infrared remote part)
    2013-04-14 16:01:38下载
    积分:1
  • MSP-EXP430FR5739-User-Experience
    MSP430实现的多级菜单功能,采用OLED实现,占用Ram量较少(MSP430 realize multi-level menu functions, the use of OLED achieved occupancy of less Ram)
    2013-07-23 18:46:18下载
    积分:1
  • Chinese-character-font-application
    单片机系统中自制硬件字库的应用.. 汉字字库(SCM system hardware homemade Chinese character font application ..)
    2014-05-09 16:12:58下载
    积分:1
  • master-mater
    这是一个智能电压表的实例,里面有完整的程序。这个电压表可以数字显示电压值的大小。 (This is the example of a table of a smart voltage, which has a complete program. This digital voltmeter shows the size of the voltage value.)
    2012-12-28 15:19:53下载
    积分:1
  • 111
    步进电机驱动,微处理器为S3C2410,具有调节转速功能(Stepper motor drive, microprocessor S3C2410, adjust the speed function with)
    2011-05-21 21:36:05下载
    积分:1
  • 696516资源总数
  • 106457会员总数
  • 15今日下载