www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/11/26/19:41:44

From: "A. Sinan Unur" <asu1 AT c-o-r-n-e-l-l DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: about: aout.exe
Date: 26 Nov 2002 23:21:39 GMT
Organization: Cornell University
Lines: 21
Sender: asu1 AT cornell DOT invalid (on pool-141-149-207-12.syr.east.verizon.net)
Message-ID: <Xns92D2BAC698002asu1cornelledu@132.236.56.8>
References: <3DDFA0CA DOT 000009 DOT 03244 AT DELL> <Xns92CF728D3F9Aasu1cornelledu AT 132 DOT 236 DOT 56 DOT 8> <63b211f7 DOT 0211240900 DOT a1f0a57 AT posting DOT google DOT com> <Xns92D096DC170A6asu1cornelledu AT 132 DOT 236 DOT 56 DOT 8> <63b211f7 DOT 0211250711 DOT 7d6a37a5 AT posting DOT google DOT com> <Xns92D17BFF1E467asu1cornelledu AT 132 DOT 236 DOT 56 DOT 8> <63b211f7 DOT 0211261124 DOT 5adfc6a7 AT posting DOT google DOT com>
NNTP-Posting-Host: pool-141-149-207-12.syr.east.verizon.net
X-Trace: news01.cit.cornell.edu 1038352899 22932 141.149.207.12 (26 Nov 2002 23:21:39 GMT)
X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu
NNTP-Posting-Date: 26 Nov 2002 23:21:39 GMT
User-Agent: Xnews/5.04.25
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

shayoom AT hotmail DOT com (Jonquil) wrote in
news:63b211f7 DOT 0211261124 DOT 5adfc6a7 AT posting DOT google DOT com: 

> i add using namespace std; to my programs and they compile
> correctly... even though i still dont fully understand what that line
> is doing.. opening standard libraries???

no. it makes all the names in the std namespace visible to your program. it 
is in general not a good practice to do that. if you don't want to use the 
std prefix everywhere, then just add

using std::cout;

etc for each name you need from the standard library to your source to 
minimize the possibility of name clashes.

-- 
A. Sinan Unur
asu1 AT c-o-r-n-e-l-l DOT edu
Remove dashes for address
Spam bait: mailto:uce AT ftc DOT gov

- Raw text -


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