cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/19/03:46:14

From: eighner AT io DOT com (Lars Eighner)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: cout + latest version?
Date: Tue, 16 Nov 1999 11:35:47 -0600
Organization: Lars Eighner, Author
Lines: 20
Message-ID: <zXZM4AwZqQeM092yn@io.com>
References: <3823718F DOT 51A3 AT tin DOT it> <800emi$10iv AT enews3 DOT newsguy DOT com>
<805uff$b44$1 AT news DOT doit DOT wisc DOT edu> <806t6a$1u3i AT enews4 DOT newsguy DOT com>
<809lmf$o2o$1 AT news DOT doit DOT wisc DOT edu> <38301C64 DOT B476CAC0 AT nortelnetworks DOT com>
NNTP-Posting-Host: dillinger.io.com
Mime-Version: 1.0
X-Trace: hiram.io.com 943001950 9719 199.170.88.20 (19 Nov 1999 08:59:10 GMT)
X-Complaints-To: abuse AT io DOT com
NNTP-Posting-Date: 19 Nov 1999 08:59:10 GMT
X-Newsreader: Yarn 0.92 with YES 0.22
X-ISP: Illuminati Online
X-Revision: 1
Originator: eighner AT dillinger-2 DOT io DOT com (Lars Eighner)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In our last episode <38301C64 DOT B476CAC0 AT nortelnetworks DOT com>,
the lovely and talented Ian Chapman <ichapman AT nortelnetworks DOT com>
broadcast on comp.os.msdos.djgpp:
|Mumit,
|	I'm not at all able to see what the issue is.  cout works like any text
|book will tell you.  I did not  know that you could get away with out
|the *.h in the include bit.  Wonder why?  

The .h is a legacy from C.  C doesn't know anything about namespaces.
So when you use .h th compiler will assume the namespace for you.
For C++ you leave out the .h and specify the namespace with using.
To do the same with old C headers, leave out the .h and put a
c in front.

-- 
          Lars Eighner  700 Hearn #101 Austin TX 78703 eighner AT io DOT com
      (512) 474-1920 (FAX answers 6th ring) http://www.io.com/%7Eeighner/
              bookstore: http://www.io.com/%7Eeighner/bookstore/
                   Extra sarcasm available at no extra cost.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019