What exactly is a namespace?

23rd Mar 2016, 9:06 PM
Cameron Dunn (cdunn2013)
Cameron Dunn (cdunn2013) - avatar
2 Answers
+ 1
It's kind of like specifying what dictionary you're using, in this case standard. Then when your compiler reads your code and translates it into binary it uses the same dictionary.
5th Apr 2016, 1:16 PM
Troll V
Troll V - avatar
namespaces contain pre-defined objects of some class or classes. therefore, cin and cout are pre-defined objects of iostream class which are members of "std" namespace.
13th Apr 2016, 10:07 AM
Pera - avatar