Each time I try to add overloaded input/output I get a compiler message about accessing the class's private data. If I REM out the statments it functions as expected.
My Friend statment is:
friend ostream& operator << (ostream &out, Meal &aMeal);
With Meal being the Class, aMeal is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.