🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #591

Re: Where are "cout" & "cin" defined?

#591
From: Brendan Kehoe
Date: Sat, 21 Nov 1992 10:05
15 lines
1239 bytes
In article <1992Nov20.182233.8065@newsgate.sps.mot.com> wied@animal.sps.mot.com (Bill Wied) writes:

   Where is "cout" and "cin" defined within libg++ 2.2? I looked in the file
   "iostream.h", but it only contains an extern reference to them.

They are defined in stdstreams.C in the iostreams subdir of libg++:

STREAM_DEF(_fake_ostream, cout, COUT_SBUF, NULL, 0)
STREAM_DEF(_fake_ostream, cerr, CERR_SBUF, (ostream*)&cout, ios::unitbuf)
STREAM_DEF(_fake_istream, cin, CIN_SBUF,  (ostream*)&cout, 0)

Brendan
--
Brendan Kehoe                                               brendan@cygnus.com
Cygnus Support, Mountain View, CA                              +1 415 903 1400
Technical Details
Message-ID: <39129@hoptoad.uucp>
Path: arc1-ca.pugleaf.net!sparky!uunet!kithrup!hoptoad!brendan
References: <1992Nov20.182233.8065@newsgate.sps.mot.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!kithrup!hoptoad!brendan
From: brendan@cygnus.com (Brendan Kehoe)
Newsgroups: gnu.g++.help
Subject: Re: Where are "cout" & "cin" defined?
Message-ID: <39129@hoptoad.uucp>
Date: 21 Nov 92 10:05:39 GMT
References: <1992Nov20.182233.8065@newsgate.sps.mot.com>
Sender: news@hoptoad.uucp
Reply-To: brendan@cygnus.com (Brendan Kehoe)
Organization: Cygnus Support, Mountain View CA; Phone +1 415 903 1400
Lines: 15
Nntp-Posting-Host: cygnus.com
In-reply-to: wied@animal.sps.mot.com's message of Fri, 20 Nov 1992 18:22:33 GMT