文件名称:Class-Date
介绍说明--下载内容来自于网络,使用问题请自行百度
Date类,其成员变量有:年、月、日,成员函数有:输出日期函数、设置日期函数、判读平年与润年函数和日期加1函数。
提示:日期加1得到第二天的日期,有三种情况:
1) 最平常的,直接+1;
2) 一个月的最后一天:
a) 一个月是31天;
b) 一个月是30天;
c) 一个月28天,29天(闰年);
3) 一年的最后一天。
-Date class whose member variables are: year, month, day, member functions are: output date function, set the date function, and interpretation of leap year and leap year date plus 1 function function. Tip: Add 1 to get the date of the next day' s date, there are three cases: 1) the most common, direct+1 2) the last day of the month: a) one month is 31 days b) a month is 30 days c ) month of 28 days, 29 days (leap year) 3) the last day of the year.
提示:日期加1得到第二天的日期,有三种情况:
1) 最平常的,直接+1;
2) 一个月的最后一天:
a) 一个月是31天;
b) 一个月是30天;
c) 一个月28天,29天(闰年);
3) 一年的最后一天。
-Date class whose member variables are: year, month, day, member functions are: output date function, set the date function, and interpretation of leap year and leap year date plus 1 function function. Tip: Add 1 to get the date of the next day' s date, there are three cases: 1) the most common, direct+1 2) the last day of the month: a) one month is 31 days b) a month is 30 days c ) month of 28 days, 29 days (leap year) 3) the last day of the year.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Exp2_3.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.