登录
首页 » Visual C++ » Date

Date

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

  • Calculate-the-position-of-the-sun
    计算太阳位置,通过公式!用单片机编译程序!(Calculate the position of the sun through the formula! Microcontroller compiler!)
    2012-12-18 22:09:24下载
    积分:1
  • AD9851
    AD9851中文资料,为pdf格式,资料比较详细,希望对需要者有所帮助。(AD9851 Chinese data)
    2013-10-26 14:11:10下载
    积分:1
  • res
    1664LED红外控制的定时器,可以通过遥控器远程控制时间的加减、暂停等功能。包括红外解码、红外码值处理(1664LED control program,which can be controled by both IR and keys。)
    2014-06-17 05:29:26下载
    积分:1
  • Light-water-program
    流水灯程序,在89C52的单片机上让LED灯按照顺序的逐个点亮(Light water program, 89C52 microcontroller on the LED lights lit one by one in the order of)
    2015-03-11 02:06:18下载
    积分:1
  • SPWM
    可以产生幅度、频率可调的方波,频率50hz到1M(Can produce the amplitude, frequency adjustable Fang Bo, frequency of 50Hz to 1M)
    2013-08-21 17:06:30下载
    积分:1
  • msp430-csb
    使用MSP430F5438单片机和HC-SR04超声波模块实现测距的源码。( Using the MSP430F5438 microcontroller and HC-SR04 ultrasonic ranging module source.)
    2015-04-19 12:04:35下载
    积分:1
  • MUSIC-
    基于最小冗余线阵的谱相关共轭循环MUSIC算法(MUSIC algorithm based on conjugate cyclic spectral correlation minimum redundancy linear arrays)
    2013-12-26 12:39:53下载
    积分:1
  • 1602QG
    F340 LCD1602 模块程序 (F340 LCD1602 module program)
    2011-05-12 23:08:46下载
    积分:1
  • drawing
    用循环程序 画用星号* 组成的方框图,可以设置方框的边长大小(Block diagram with an asterisk* cyclic process consisting of paintings, you can set the size of the box side)
    2014-02-22 13:59:19下载
    积分:1
  • stm32f407 手写识别
    基于stm32f407的手写识别程序,亲测可用(Handwriting recognition program based on stm32f407)
    2018-03-14 22:02:21下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载