Thread: ostream
View Single Post
Old Nov 10th, 2005, 12:22 PM   #5
-=PARADOX=-
Programmer
 
-=PARADOX=-'s Avatar
 
Join Date: Oct 2005
Location: Portugal
Posts: 53
Rep Power: 3 -=PARADOX=- is on a distinguished road
Sorry i forget the & ...

Here is the definition:

ostream& operator<<( ostream &stream, const CString &str1)
{
        stream << str;
        return stream;
}

Another question... should i implement the function inside the class or outside it using the friend keyword?
-=PARADOX=- is offline   Reply With Quote