View Single Post
Old 10-27-2005, 11:05 PM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
Quote:
the istream & ostream are going to be overloaded since we can't act on our "r" data type since it's a user-defined one, right?
Yes, since we require the standard in stream to send what ever is there into our removed class instance r, we are overloading the usual istream>>/ostream<< operators.
The questions about how the friend functions interact, should be covered in my example, atleast so the read-in; print-out shouldn't cause you any trouble..
But, while you're reading the code you should understand what is going on..
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote