How would I go about solving a - i? Thank you for your time guys!
#include <iostream>
using namespace std;
class dateType
{
private:
int day;
int month;
int year;
public:
// constructor with default parameters
dateType(int m= -1, int d= -1, int y= 1999);
// a) overload the + operator to add dates: make sure to overload + operator as a MEMBER function!
// IMPORTANT NOTES: 1) a day value cannot be bigger than 31: you can assume that all the months will have 31 days to simplify your coding!
// 2) a month value cannot be bigger than 12.
//...
// b) overload the == operator to check if two dateType's are equal: make sure to overload == operator as a NON-MEMBER function!
//...
// c) overload >> operator to print a dateType
//...
// d) overload << operator to get a dateType from the keyboards
//...
};
dateType::dateType(int d, int m, int y)
{
month = m;
day = d;
year = y;
}