0

Write a class Date which consists of:

Member variables: day, month, and year
Member function DaysSinceFirstJan1() which returns the total number of days since 01-Jan-0001.
Now write a main function which asks the user to enter 5 dates (day, month, year) which are stored in an array of objects of the type Date and shows the total number of days past since 01-Jan-0001 for each of the 5 dates using the member function DaysSinceFirstJan1().

It must defined the leep year first

Any help please?

2
Contributors
1
Reply
24
Views
3 Years
Discussion Span
Last Post by ddanbe
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.