-->
当前位置:首页 > 题库

PROGRAMMING:Definition and use of class

Luz5年前 (2021-05-10)题库619
Define a date class with data members year, month and day, representing year, month and day respectively, and several member functions: constructor is used to initialize data members, isleap function is used to judge leap year. Write the main function: create a date object to determine whether the year is a leap year.
###Input format:
Each group of test data contains only one test case, and each test case in a row includes three numbers, which represent year, month and day respectively.
###Output format:
If it is a leap year, output yes, if not, output No.
###Input example:
```in
2006 3 5
```
###Output example:
```out
no
```






answer:If there is no answer, please comment