Xref: utzoo comp.lang.modula2:771 comp.lang.misc:1433 comp.lang.c:9262 comp.lang.pascal:806 Path: utzoo!mnetor!uunet!husc6!think!bloom-beacon!gatech!uflorida!codas!cpsc6a!atl2!akgua!mtunx!lzaz!bds From: bds@lzaz.ATT.COM (BRUCE SZABLAK) Newsgroups: comp.lang.modula2,comp.lang.misc,comp.lang.c,comp.lang.pascal Subject: Re: Modula2's godawful IO. Message-ID: <99@lzaz.ATT.COM> Date: 12 Apr 88 18:21:41 GMT References: <764@ndsuvax.UUCP> <535@m10ux.UUCP> <96@lzaz.ATT.COM> <547@m10ux.UUCP> Organization: AT&T ISL Middletown NJ USA Lines: 19 Summary: Is done for you. In article <547@m10ux.UUCP>, rgr@m10ux.UUCP (Duke Robillard) writes: > In article <96@lzaz.ATT.COM> bds@lzaz.ATT.COM (BRUCE SZABLAK) writes: > >I like C++'s overloading of the << and >> operator's even better ... > > Yeah, but that doesn't help me print out an error message, two strings, > and an integer return code. I don't want to have to write a method > for every print.... > In C++: #include Then: ... cout << "error message " << string1 << " " << string2 << " " << rc; ... The header file defines printing for the ususal types.