- 24
- 0
- 约9.35千字
- 约 9页
- 2021-12-03 发布于福建
- 举报
_综合实例 _个人银行账户管理程序
//date.h
#ifndef __DATE_H__
#define __DATE_H__
class Date
{ // 日期类
private:
int year; // 年
int month; // 月
int day; // 日
int totalDays; // 该日期是从公元年 1 月 1 日开始的第几天
public:
Date(int year,int minth,int day); // 用年、月、日构造日期
int getYear() const {return year;}
int getMonth() const {return month;}
int getDay() const {return day;}
int getMaxDay() const; // 获得当月有多少天
bool isLeapYear() const // 判断当年是否为闰年
{
return year%4==0amp;amp;year%100!=0||year%400==0;
}
void show
您可能关注的文档
最近下载
- 肺栓塞最新指南 PPT.ppt VIP
- 《产品开发需求说明(SOR)》-动力电池-V1.0.docx VIP
- 2024—2025学年山东省济南市章丘区九年级上学期期中质量检测化学试卷.doc VIP
- 山东省济南市莱芜区2023-2024学年九年级上学期期中化学模拟试题(含答案).pdf VIP
- 2020-2021学年济南市历城区九年级上学期期中化学试卷(含解析).docx VIP
- 山东省济南市山东大学附属中学2023—2024学年九年级上学期期中化学测评卷.docx VIP
- 光电子学与光子学—-原理与实践(英文第2版)习题答案.0002.pdf
- 2020-2021学年济南市章丘实验中学九年级上学期期中化学试卷(含解析).docx VIP
- 2020-2021学年济南市历城区九年级上学期期中化学试卷(含解析).docx VIP
- 铸剑股市行为分析样本.doc VIP
原创力文档

文档评论(0)