Question: Create a C++ program using Visual Studio where you design a DateTime class that holds a month, a day, a year, an hour, and a
Create a C++ program using Visual Studio where you design a DateTime class that holds a month, a day, a year, an hour, and a minute. Overload extraction and insertion operators for the class. In this program, overload the == operator to compare two DateTimes. Consider one DateTime to be equal to another if both have the same day, month, and year. Also, create a main() function that allows you to enter ten DateTimes into an array. If a DateTime has already been entered, do not allow a second DateTime to the same date.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
