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