Description: Define a date class as follows: class Date (public: void SetDate (int y, int m, int d) void IsLeapYear () private: int year int month int day ) requirements: (1) preparation SetDate ( int y, int m, int d) function, to achieve the object set of data members (2) the preparation of IsLeapYear () determine whether the year is a leap year.
- [Date] - This file implements the Date class memb
File list (Check if you may need any files):
新建文件夹\1.cpp
新建文件夹