登录
首页 » Visual C++ » Date

Date

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

  • QuizMaster1793799142004
    QuizMaster for viusal basic.
    2016-01-03 14:37:31下载
    积分:1
  • 12864
    12864液晶显示图像与文字的C51程序(12864 LCD image and text C51 program)
    2013-11-06 01:01:46下载
    积分:1
  • PWM
    msp430单片机通过产生PWM波控制舵机(msp430 microcontroller to generate the PWM wave control servos)
    2021-03-08 16:19:28下载
    积分:1
  • LSD_C
    自己实现的LSD直线检测算法,比论文提供的LSD检测算法少了很多复杂操(LSD own line detection algorithm implemented, LSD detection algorithm than the paper offered a lot less complicated operation)
    2021-02-01 10:50:01下载
    积分:1
  • CC2530
    CC2530 步进电机控制实验。一个简单的例程(CC2530 stepping motor control experiment)
    2020-12-29 00:09:02下载
    积分:1
  • 51-1602
    基于Keil的51工程-1602移位显示(51 works based on Keil-1602 shift display)
    2013-08-10 09:57:28下载
    积分:1
  • xuguan
    多传感器目标跟踪 匀速四航迹独立序贯航迹关联(data fusion target tracking)
    2010-08-23 15:23:51下载
    积分:1
  • J1939
    j1939在康明斯电控发动机上的应用情况和基本概念(j1939 electronically controlled Cummins engine in the application and basic concepts)
    2013-11-04 12:48:08下载
    积分:1
  • RS485
    本文介绍一种利用单片机本身所提供的串行通讯口,采用自定义串行通信协议,加上总线驱动器如MAX481、MAX483、MAX485、MAX487等组合成简单的RS-485通讯网络,完成单片机间的多机通讯。(This article describes a serial communication port provided by the microcontroller itself, the custom serial communication protocols, coupled with the bus driver, such as the MAX481, MAX483, MAX485, MAX487, combined into a simple RS-485 communication network, complete single-chip between themulti-machine communication. )
    2012-05-03 14:51:32下载
    积分:1
  • modscan
    说明:  一个特别好的modbus从机扫描程序,可以以RTU或ASCII方式通信以此来检验下位机。(A particularly good modbus slave scanner can communicate with RTU or ASCII way to test this lower position.)
    2010-05-05 09:18:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载