综合实例个人银行账户管理程序参考.pdfVIP

  • 24
  • 0
  • 约9.35千字
  • 约 9页
  • 2021-12-03 发布于福建
  • 举报

综合实例个人银行账户管理程序参考.pdf

_综合实例 _个人银行账户管理程序 //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

文档评论(0)

1亿VIP精品文档

相关文档