登录
首页 » Visual C++ » Date

Date

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

  • 1286418B20
    开关记忆和18B20在12864显视和读写24C20(Switch Memory and 18B20 were in the TV and read 24C20 12864)
    2011-02-11 07:05:42下载
    积分:1
  • lex_weight
    lexical analysis of text detail program...
    2009-11-13 05:34:53下载
    积分:1
  • congji
    实现声音导引小车运动,智能小车程序C51代码(Achieve sound AGV Sport, smart car program code C51)
    2013-08-09 14:45:30下载
    积分:1
  • Lab005a
    Cambios de giro de un motor DC controlado por hiperterminal
    2011-07-04 01:35:51下载
    积分:1
  • cedianzu
    利用51单片机做电阻测量仪,实现按键设置阻值自动报警提示(The use of 51 single-chip resistance measuring instrument to achieve automatic alarm button to set the resistance)
    2013-07-28 01:39:05下载
    积分:1
  • test
    51单片机控制16乘以16点阵,可以显示汉字等(51 single chip control 16 times the 16 dot matrix, you can display Chinese characters, etc.)
    2016-02-20 19:39:45下载
    积分: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
  • ADC1_TriggerConversion
    根据对应的按键值,对应输出相应的电容值,并做掉电检测(According to the corresponding key value, corresponding to the output of the corresponding capacitance values ​ ​ and do brownout detection)
    2013-11-26 23:42:16下载
    积分:1
  • ZYCainiao_sch_pcb
    自己画的四轴飞行器,原理图,pcb。。。。。。。。。。。。。。。。。。。。。。。为了20个子,我真的不容易(Own painting Four aircraft, schematics, pcb)
    2013-09-22 16:23:55下载
    积分:1
  • Temp_Time
    基于DS18B20+DS1302+lcd1602+MSP430的温度时间综合测量(temperature and time measurement based on MSP430,DS1302,DS18B20,LCD1602)
    2013-01-29 13:06:11下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载