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

PROGRAMMING:Class definition

Luz5年前 (2021-05-10)题库411
Define a class ddate, in which there are data members year, month and day, representing year, month and day respectively, and there are several member functions: the constructor is used to initialize data members, and the islep function is used to judge leap year. Write the main function: create a date object to determine whether the year is a leap year.
The above class names and function names must be in accordance with the requirements of the title and cannot be modified
###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 the year 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