C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 11th, 2006, 05:25 PM
Wolf1987 Wolf1987 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Posts: 4 Wolf1987 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 31 sec
Reputation Power: 0
Using namespace std;

using namespace std;

I have seen this several times in the beginning of some programs. I have no idea what it means. Care to expand on that anyone?

Reply With Quote
  #2  
Old January 11th, 2006, 09:25 PM
Geo.Garnett's Avatar
Geo.Garnett Geo.Garnett is offline
Registered Loser
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: Retardation Nation...
Posts: 347 Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level)Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 3 h 13 m 45 sec
Reputation Power: 4
Send a message via AIM to Geo.Garnett
Ok I started to try and explain this but I am not very good at it so heres a link that will hopefully help clarify what it does and can be used for.
Namespaces
But in short it basically helps the default libraries work correctly and allows you to use certain functions associated with C++ such as instead of using the global call std::cout; with using namespaces std; it's just cout<<. Hope this stuff helps a little. I really have never looked that far into it. So good post man.
__________________
---Official Member Of The Itsacon Fan Club---
Give a man a fish and he will eat for a day. Teach a man to fish and he will sit in a boat all day drinking beer.

Last edited by Geo.Garnett : January 11th, 2006 at 09:29 PM.

Reply With Quote
  #3  
Old January 28th, 2006, 10:55 PM
proghelper proghelper is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 12 proghelper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 46 m 21 sec
Reputation Power: 0
std is the namespace under which the standard stuff like input/output (cin/cout) are defined.

You must use the std namespace if you are to make use of those standard API calls

http://www.programminghelp4u.com

Reply With Quote
  #4  
Old February 4th, 2006, 01:46 AM
Cirus Cirus is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 276 Cirus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 11 h 48 m 58 sec
Reputation Power: 4
using namespace std;

means to include package with the name "std" or standard.

In new versions of C++ , vendors have come with new packages or libraries.

I am not so sure but using namespace std looks familiar to using keyword in JAVA.

So, I think it is a third party module.

Example: In JAVA we use : import java.awt.*
using <nameof Package>

This looks analogous to C++ code

#include<file.h>
using namespace std

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > Using namespace std;


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT