1234567
class Foo { int x; public: Foo ( int x ): x(x) {} };
12345678
int main() { Foo myFoo(3); cout << myFoo << endl; return 0; }
3
std::ostream& operator << (std::ostream& str, const Foo& f);