登录
首页 » Visual C++ » Date

Date

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

  • ENC28J60DEMO
    使用方法: 程序设置了ENC28J60的IP为192.168.0.15,模块通电后与电脑的网口用网线连接起来, 设置电脑的本地IP为192.168.0.**(**自定),网关为192.168.0.15,其他默认,配置 成功后便可以arp或ping模块。 打开浏览器,在地址里输入http://192.168.0.15/123456可打开开发板简单网页,页 面上通过按键来控制开发板LED的亮灭。(Use: setup the ENC28J60 of IP to 192.168.0.15, the module is powered on the computer' s Ethernet port using a cable connection up to set the computer' s local IP 192.168.0.** (** Custom), the gateway 192.168.0.15, default configuration is successful, it will make arp or ping module. Open the browser, enter the address http://192.168.0.15/123456 to open the development board simple web pages, and page keys to control the development board LED light off.)
    2012-05-31 18:14:57下载
    积分:1
  • 39
    说明:  时钟芯片PCF8563 C51程序,本人测试通过(Clock chip PCF8563 C51 program, I test through)
    2013-01-14 11:01:16下载
    积分:1
  • MuCashShopEditor
    MuOnline CashShop Editor for TT, zTeam and etc. Season6E3
    2015-03-27 19:31:32下载
    积分:1
  • Voltmeter
    走马灯,包括原理图和源程序,功能齐全,运用单片机开发的代码(Lantern, including schematics and source, fully functional, use microcontroller development code)
    2015-01-07 21:06:10下载
    积分:1
  • 温湿度VB源码
    温湿度串口检测程序,实现对数据的读取和检测(Temperature and Humidity Serial Port Detection Program for Data Reading and Detection)
    2020-06-17 10:20:02下载
    积分:1
  • DPM_BODY_FORCE
    It can be used to simulate body force in Discrete Particle Model (DPM) in ANSYS FLUENT v14.5
    2014-04-16 10:02:48下载
    积分:1
  • TimerRD_PWM
    单片机的计时器PWM模式实例代码,希望给相关的人员带来帮助。(Single chip timer mode PWM code examples, hope to the related personnel to bring help. )
    2011-12-21 11:26:01下载
    积分:1
  • 430
    msp430f149三相逆变电源源代码,可以输出6路spwm信号(msp430f149 spwm)
    2014-05-09 16:39:55下载
    积分:1
  • 51chipdanPLC
    PLC与51单片机通讯示例程序(单片机程序)(PLC and 51 single-chip communication sample programs (MCU program))
    2011-11-25 14:27:14下载
    积分:1
  • ALIENTEK-MINISTM32---hongwaiyaokong
    ALIENTEK MINISTM32 hongwaiyaokong.zip
    2012-11-04 11:54:28下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载