登录
首页 » Visual C++ » Date

Date

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

  • ev1527
    基于一款EV1527的解码程序,配合330K震荡电阻使用(Based on the a EV1527 decoding program, with the use of 330K shock resistance)
    2020-09-08 20:18:04下载
    积分:1
  • xuanguakongzhi5110
    用诺基亚5110显示的悬挂运动控制系统,完美的运行了寻点,直线,画圆,循迹的程序没加进去,如果想要的话发信息至1551142817@qq.com(Nokia 5110 display with a suspension motion control system, running to find the perfect point, line, circle, tracking program not added, if desired send a message to 1551142817@qq.com)
    2013-09-09 20:18:59下载
    积分:1
  • EasyTrace
    在单片机上运行的简单的颜色跟踪算法,中文注释(Running on the microcontroller simple color tracking algorithm, Chinese Notes)
    2013-10-11 20:50:35下载
    积分:1
  • digital
    基于单片机STC89C51和74LS164的多功能数字万用表(Based on microcontroller STC89C51 and 74 ls164 multi-function digital multimeter)
    2013-08-29 22:40:03下载
    积分:1
  • CS5460A
    CS5460A芯片源程序,能测量电流、电压以及电能等量。(CS5460A chip source program, which can measure current, voltage and equal power.)
    2012-06-06 12:41:44下载
    积分:1
  • 4x4keyboardscan
    C语言编程,4X4键盘扫描程序,可以直接使用到51单片机中(C language programming, 4X4 keyboard scanner can be used directly in the 51 SCM)
    2009-04-30 14:56:43下载
    积分:1
  • MSP430
    MSP430 我们全国电子竞赛老师给的资料(MSP430 National Electronic contest teacher gave us the information)
    2013-08-16 14:20:55下载
    积分:1
  • WASPCN
    根据IAPWS-IF97和IFC67编写的水和蒸汽性质计算软件(the software for calculating the properties of water and water vapor)
    2015-01-31 11:45:07下载
    积分:1
  • Chip-electronic-bell-million-years
    单片机万历年电子钟Chip electronic bell million years(Chip electronic bell million years)
    2013-11-15 15:16:49下载
    积分:1
  • 24xled
    说明:  24C08多花样流水,采用51开发板,编程使LED呈流水灯,初学者的好例子。(24C08 multi-pattern, running water, with 51 development board, program the LED lights were water, a good example for beginners.)
    2011-04-07 15:47:24下载
    积分:1
  • 696518资源总数
  • 104517会员总数
  • 39今日下载