Thread: using namespace std;

  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    167

    Question using namespace std;

    what does using namespace std; do ?

    Thank you! And sorry for the newbie question!

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    @codeguru
    Join Date
    Jan 2006
    Posts
    34
    std is a namespace that C++ standards use. namespaces gives all functions and classes within a name before it. for ex you have function A in namespace B the function you call is B::A(); when you put using namespace B; before it you only have to call A();

  4. #4
    Registered User
    Join Date
    Dec 2005
    Posts
    167
    thank you!
    i got it!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why std:: and not using namespace std?
    By swappo in forum C++ Programming
    Replies: 4
    Last Post: 07-03-2009, 03:10 PM
  2. std:: or namespace std
    By C-+ in forum C++ Programming
    Replies: 16
    Last Post: 12-04-2007, 12:30 PM
  3. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM
  4. need ; before using namespace std
    By wwfarch in forum C++ Programming
    Replies: 7
    Last Post: 05-11-2004, 10:42 PM
  5. Site tutorials
    By Aalmaron in forum C++ Programming
    Replies: 20
    Last Post: 01-06-2004, 02:38 PM