1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef _foo_h #define _foo_h #include <iostream> class foo { public : int i ; foo() : i(0) {} ; foo( const int i0 ) : i(i0) {}; friend ostream& operator << (ostream&,const foo&); friend ostream& operator << (ostream&,const foo&, const foo&); }; #endif