Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by DavidTheLazyStudent

  1. DavidTheLazyStudent

    Overloading << & >> Operators

    No, that was a typo posting. The * was not in my program. I REM'ed it out to test that it would compile without those statements to isolate my problem. I had also made it a const as you had pointed out. But it still didn't compile, untill I used <iostream.h> instead of just plain <iostream> and...
  2. DavidTheLazyStudent

    Overloading &lt;&lt; &amp; &gt;&gt; Operators

    Thank You all... that was it foada. I did and it compiled fine. This has been driving me crazy. (The * was a result of a careless /* not really in my program).
  3. DavidTheLazyStudent

    Overloading &lt;&lt; &amp; &gt;&gt; Operators

    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...

Part and Inventory Search

Back
Top