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?

Search DaniWeb!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.