登录
首页 » Visual C++ » Date

Date

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

  • CLedShowDemo
    一个指示灯闪烁的小程序,给大家做参考,个人认为还是有参考价值的。(A simple Led indicator program for glitter.)
    2011-01-13 12:16:00下载
    积分:1
  • motor_encoder
    stm32f072rbt6 直流电机编解码(光栅编码器)的数据采集程序。(stm32f072rbt6 DC codec (coder raster) data collection program.)
    2015-09-14 11:28:37下载
    积分:1
  • PG_FOC
    闭环矢量的代码,台达的,汇编语言。绝对真实,行家一眼就能看出来(Closed-loop vector code, Delta, and assembly language. Absolutely true, experts tell at a glance)
    2014-08-27 10:07:42下载
    积分:1
  • lab7-AD-(TIMIER)
    利用28335的cpu-timer0的中断功能进行AD采集,并有AD校核程序(Use cpu-timer0 interrupt functions of 28335 AD acquisition, and checking procedures AD)
    2013-12-12 11:44:44下载
    积分:1
  • UCS2Char
    该工具可以根据输入的UNICODE十六进制字符串计算出相应的汉字或ASCII码。比如:输入4F60便可以得到"你"。(The tool can be based on the input UNICODE calculate the corresponding hexadecimal string guy or ASCII.)
    2013-09-09 12:29:23下载
    积分:1
  • SV_PWM
    tms320F28335是一款新的dsp芯片,svpwm算法的实现和以前的2812等有点不同,现在将我写的分享给大家,已经调试过了,晶振是20MHz。28335的svpwm的实现。(tms320F28335 is a new dsp chip, svpwm algorithm implementation and the previous 2812 and so a little bit different, now I write for everyone to share, debugging, and the crystal is 20MHz. 28335 svpwm implementation.)
    2014-02-18 10:21:36下载
    积分:1
  • CH341A-Labview-driver-VI.lib
    I2C与mens传感器通信应用ch341-I2C-labview(I2C and mens tongxin)
    2015-07-23 11:29:21下载
    积分:1
  • libimobiledevice
    libimobiledevice VS2008 可编译代码 需要自行编译openssl-1.0.1l (libimobiledevice VS2008 code can be compiled Need to compile openssl-1.0.1l)
    2015-02-27 10:48:12下载
    积分:1
  • GOEN_375b84c6
    A program to consicle very mad and good !! yes :
    2010-06-05 11:50:38下载
    积分:1
  • SCM-papers-report
    单片机论文报告 我的课程设计报告 供大家参考(SCM papers report my curriculum design report for your reference)
    2013-09-10 19:33:25下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载