/* ECP: FILEname=fig14_23.cpp */ /* 1*/ ostream & /* 2*/ operator << ( ostream & Output, const String & Str ) /* 3*/ { /* 4*/ Output << Str.Storage; /* 5*/ return Output; /* 6*/ } /* 1*/ istream & /* 2*/ operator >> ( istream & Input, String & Str ) /* 3*/ { /* 4*/ static char Tmp[ 512 ]; // Should be enough for most cases. /* 5*/ Input >> Tmp; /* 6*/ Str = Tmp; /* 7*/ return Input; /* 8*/ }