登录
首页 » Visual C++ » Date

Date

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

  • CDPartner
    这是一个带有时钟,闹钟的桌面宠物程式. 还有记事功能!!COOL(This is a clock, alarm clock, desktop pet programs. There Notepad function!! COOL)
    2007-11-29 19:45:16下载
    积分:1
  • 2D
    说明:  一个求二维格点模型热传导的程序,可以求温度分布和热导率(a program to get the theomal conductivity in 2D lattice madel)
    2012-03-31 11:52:56下载
    积分:1
  • sortlistctrldemo
    listctrl控件,用回调函数进行排序(listctrl controls, using a callback function Ranking)
    2005-01-28 09:29:24下载
    积分:1
  • 51-Microcontroller-Programmer-
    51单片机编程器制作资料。内有pcb,原理图,物料清单,hex文件。自制成功(51 Microcontroller Programmer production of information. There pcb, schematics, BOM, hex file. Self-made success)
    2011-11-14 12:31:09下载
    积分:1
  • 2.4G
    2.4G研发详细文档,对没有无线基础的同学非常有帮助!(2.4G development with the document, very helpful to students based on no wireless! )
    2015-02-24 22:44:28下载
    积分:1
  • stm32dudong12864
    STM32F103驱动12864液晶程序,很适合于初学者,希望对你有用(12864 STM32F103 driver program, it is suitable for beginners, I hope useful to you)
    2014-02-23 18:45:08下载
    积分:1
  • 3399873
    AT89C51驱动直流电机,有仿真跟C语言。直流电机驱动,实现直流电机的正、反转,PWM调速。(AT89C51-driven DC motor, a simulation with the C language. DC motor drives, DC motor forward and reverse PWM speed control.)
    2012-06-05 21:03:47下载
    积分:1
  • flashrwcode
    说明:  针对两种flash所写的读写程序,公布我原来写的针对两种flash所写的读写程序,用的单片机是51系列!(against two flash reader written procedures, I was originally announced against two flash reader written procedures, the MCU is 51!)
    2006-05-12 21:28:13下载
    积分:1
  • MSP430
    MSP430 我们全国电子竞赛老师给的资料(MSP430 National Electronic contest teacher gave us the information)
    2013-08-16 14:20:55下载
    积分:1
  • 实验5_硬件乘法器操作
    说明:  MSP430F449的硬件乘法器操作IAR Practice code(MSP430F449 hardware multiplier operation code IAR Practice)
    2005-09-08 13:39:08下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载