home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / g / help / 1464 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  1.2 KB

  1. Path: sparky!uunet!kithrup!hoptoad!brendan
  2. From: brendan@cygnus.com (Brendan Kehoe)
  3. Newsgroups: gnu.g++.help
  4. Subject: Re: Where are "cout" & "cin" defined?
  5. Message-ID: <39129@hoptoad.uucp>
  6. Date: 21 Nov 92 10:05:39 GMT
  7. References: <1992Nov20.182233.8065@newsgate.sps.mot.com>
  8. Sender: news@hoptoad.uucp
  9. Reply-To: brendan@cygnus.com (Brendan Kehoe)
  10. Organization: Cygnus Support, Mountain View CA; Phone +1 415 903 1400
  11. Lines: 15
  12. Nntp-Posting-Host: cygnus.com
  13. In-reply-to: wied@animal.sps.mot.com's message of Fri, 20 Nov 1992 18:22:33 GMT
  14.  
  15. In article <1992Nov20.182233.8065@newsgate.sps.mot.com> wied@animal.sps.mot.com (Bill Wied) writes:
  16.  
  17.    Where is "cout" and "cin" defined within libg++ 2.2? I looked in the file
  18.    "iostream.h", but it only contains an extern reference to them.
  19.  
  20. They are defined in stdstreams.C in the iostreams subdir of libg++:
  21.  
  22. STREAM_DEF(_fake_ostream, cout, COUT_SBUF, NULL, 0)
  23. STREAM_DEF(_fake_ostream, cerr, CERR_SBUF, (ostream*)&cout, ios::unitbuf)
  24. STREAM_DEF(_fake_istream, cin, CIN_SBUF,  (ostream*)&cout, 0)
  25.  
  26. Brendan
  27. --
  28. Brendan Kehoe                                               brendan@cygnus.com
  29. Cygnus Support, Mountain View, CA                              +1 415 903 1400
  30.