Hi all

Can anyone help me? I'm having a compile problem when attempting to compile code including declaration and definition of the following:

ostream& operator << (ostream& output, const Dog& theDog);
friend ostream& operator << (ostream& output, const Dog& theDog);

The compiler (Visual Express 2008) keeps telling me that it cannot find the return type (int assumed - C++ does not support default int etc). Obviously I'm intending for the return type to be ostream&.

Can anyone work out what's going on here? I am including "using std:stream" at the start of the program.

Cheers! :-)