登录
首页 » Visual C++ » Date

Date

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

  • printlist
    说明:  一个自写的ClistCtrl打印类,直接引用就行(a written ClistCtrl Print category applied directly on the line)
    2006-03-26 23:02:11下载
    积分:1
  • c035
    doccument for engineer of electronics
    2014-12-09 11:54:25下载
    积分:1
  • ljqTXRX_wifi
    用keilC 开发的基于nRF24LE1的wifi收发程序,已经用于实际数据传输系统(keil C wifi nRF24LE1)
    2016-03-19 19:53:22下载
    积分:1
  • frameparse
    一个以太网帧解析程序,实现以下功能:解析已封装好的Ethernet V2.0帧封装文件(见附件),判断有多少个帧,每个帧的所有字段内容,检测CRC校验是否正确(An Ethernet frame analysis program, the following functions: parsing the encapsulated Ethernet V2.0 frame encapsulation (see annex), to determine the number of frames, each frame contents all fields to detect CRC checksum is correct)
    2013-12-06 17:41:20下载
    积分:1
  • flash
    基于低功耗单片机msp430f5438a的spiflash w25q128驱动 读写擦除(Based on low-power microcontroller msp430f5438a of spiflash w25q128 drive to read and write erase)
    2013-11-19 09:03:07下载
    积分:1
  • red-translator
    红外解码,通过单片机的红外解码控制单片机上的相关控件。(failed to translate)
    2011-07-07 09:45:03下载
    积分:1
  • 00.c
    基于单片机的数字电容表设计代码,包含数码管的显示(Based on single chip microcomputer digital capacitance table design code )
    2013-04-26 16:02:20下载
    积分:1
  • Light-water
    电协开发板 C51单片机程序,用于实现单片机的流水灯输出(Electric Association C51 microcontroller development board procedures for the realization of single-chip light water output)
    2013-10-27 11:07:48下载
    积分:1
  • xiaochexunji
    使用单片机进行智能小车寻迹控制,使用左右两个传感器。(Using microcontroller smart car tracking control, using about two sensors.)
    2015-04-08 14:38:13下载
    积分:1
  • lax-wendroff
    lax-wendroff求前台阶超声速流动(lax-wendroff format)
    2021-04-09 16:18:59下载
    积分:1
  • 696518资源总数
  • 106253会员总数
  • 14今日下载