登录
首页 » Visual C++ » Date

Date

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

  • -
    说明:  i2c红外 小车扫描 简单程序 扫描准确(smart car scan easy program)
    2012-03-13 13:13:08下载
    积分:1
  • Simulate-the-elevator-system
    模拟电梯控制系统程序设计代码,用户可输入任意楼层,程序有先来先服务策略和顺便服务策略。(Elevator control system design simulation program code, the user can enter any floor, the program has first come first serve policy and the way services strategy.)
    2014-12-12 22:43:13下载
    积分:1
  • msp430f5438system_Chinese-Materials
    msp430f5438系统中文资料(全)(msp430f5438system_Chinese Materials)
    2013-09-09 09:12:43下载
    积分:1
  • xunjixiaoche
    51单片机控制智能小车循迹小车c源程序5路循迹(51 MCU control smart car)
    2013-04-10 14:16:05下载
    积分:1
  • CClockSTProject
    一个模拟电子表的程序,有兴趣的可以研究研究(a simulated electronic watches the proceedings, interested can studies)
    2007-03-29 11:26:03下载
    积分:1
  • IR
    MSP430红外解码驱动,占用了一个定时器资源。(MSP430 IR decoding drive, taking up a timer resources.)
    2013-08-25 19:03:05下载
    积分:1
  • SLE442duxie
    c51单片机的sle4442卡的读写加密验证程序 已通过(c51 microcontroller sle4442 card reader encrypted authentication procedure has been adopted)
    2013-10-27 09:15:38下载
    积分:1
  • include
    ATMEGA48 头文件 适用于 ICCAVR7.0 有些版本没有ATMEGA48的头文件(ATMEGA48 )
    2013-08-08 22:45:19下载
    积分:1
  • Exceptional-CPP
    This second edition cancels and replaces the first edition, ISO/IEC 9899:1990, as amended and corrected by ISO/IEC 9899/COR1:1994, ISO/IEC 9899/AMD1:1995, and ISO/IEC 9899/COR2:1996.
    2014-10-22 21:17:02下载
    积分:1
  • MC9S12XS128changyongmokuai
    MC9S12系列单片机的学习的资料,里面包括了其重要的技术模块及编程技巧,能帮助大家更好的了解和使用这款单片机(MC9S12 series MCU learning materials, including its important technical modules and programming skills, to help people better understand and use the single chip microcomputer )
    2013-10-16 10:01:22下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载