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?