Original Post
🔒 Locked
c++ namespace
Advertisement
Not to sound critical but its fairly easy, all its there for as you said, is too avoid name collisions in your program... eg when using external librarys like STL or you might find a sound or graphic library on the net that you use and it might have "hello" as a variable, so you would not be able to use that name but if its in a namespace you can use it and to access that variable you would just have to write:
CEO Plunder Studios
NamespaceName::hello
CEO Plunder Studios
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement