Description: Define a Date class to meet the following requirements: data members: year, month, day member functions: 1, constructors, Date (int y = 2012, int m = 1, int d = 1) 2, the date in the following format output : day/month/year void Display () 3, can be run on the date plus one day operate void AddOneDay () 4, to set the date void SetDay (int y, int m, int d) 5, destructor, in wherein the output " destructor." Writing the main function, define the object, call the AddOneDay () function, calling the output function Display (), output date. Then, call the function to set the date, set to February 28, 2012, and then call AddOneDay () function, calling the output function Display (), output date.
To Search:
File list (Check if you may need any files):
Lab7_3.cpp