Namespace question

This is a discussion on Namespace question within the C++ Programming forums, part of the General Programming Boards category; I was just wondering, is it possible to put the name of a class into a namespace?...

  1. #1
    Registered User
    Join Date
    Mar 2006
    Location
    Ohio
    Posts
    37

    Namespace question

    I was just wondering, is it possible to put the name of a class into a namespace?

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,319
    Yes.
    Code:
    namespace ns { class mc { }; }
    The obviousness of the answer makes me think that's not what you're asking, though. Can you be more specific?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Design layer question
    By mdoland in forum C# Programming
    Replies: 0
    Last Post: 10-19-2007, 04:22 AM
  2. namespace question
    By Dave++ in forum C++ Programming
    Replies: 6
    Last Post: 06-04-2007, 05:47 PM
  3. A fourth noobie question - namespace std?
    By Noobie in forum C++ Programming
    Replies: 24
    Last Post: 08-12-2005, 02:10 PM
  4. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 08:22 PM
  5. using namespace std; question.
    By fuh in forum C++ Programming
    Replies: 2
    Last Post: 12-30-2002, 03:39 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21