AoA I am new to this community just joined it yesterday. Want to know the way how to help others and get helped. I am a good learner and just love C++ language. Wanna grow in this field. :D

Member Avatar
Member Avatar
+0 forum 3

The class should be capable of storing, manipulating and printing dates. Dates can be initialized by assigning 3 numbers - the day, the month and the year (initially restricted to any date after 1st January 1900 and before the year 3000) e.g. `Date d1(26,3,1999);` Dates will be printed by either of two member functions: d1.print_nz(); // outputs 26/03/1999 d1.print_text(); // outputs Friday, 26th March 1999 or by the overloaded << operator: cout << d1; // outputs Friday, 26th March 1999 Dates can be manipulated by adding a number of days (from 0 to 999,999) - either by calling a function: …

Member Avatar
Member Avatar
-1 forum 5

The End.