Here is where my code original code is http://www.sourcepod.com/hddzfp77-11938 .
ID: 3656896 • Letter: H
Question
Here is where my code original code is http://www.sourcepod.com/hddzfp77-11938 . Use that for this program. Modify the Date class in the program. The new version should have the following overloaded operators: ++ Prefix and postfix increment operators. These operators should increment the objectExplanation / Answer
istream& operator >>(istream& is,CustomDate& d){ string dateStr; is>>dateStr; istringstream iss(dateStr); int day,month,year; char ch1,ch2; if(!(iss>>day>>ch1>>month>>ch2>>year)){ error("invalid date input"); return is; } if(ch1!='/' || ch2!='/'){ error("invalid date format use m/d/y"); return is; } d = CustomDate(day,month,year); return is; }