Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Here is where my code original code is http://www.sourcepod.com/hddzfp77-11938 .

ID: 3656822 • 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 object

Explanation / 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; }