Quote (ferf @ Aug 19 2015 09:04am)
hmmm thanks, that bettered my understanding a bit :)
so they're basically to hold anything with the same name, variables, classes, etc....Sounds kind of dumb, why not just use a different name
first of all im new to c++ as well, so maybe there are mistakes in my knowledge.
till now i used only one time activ namespaces in a project. but normally you use it in a indirect way.
nearly every method that you callup in your projects use namespaces. if they wont you could have a problem...
for example your using a method to give something out on a display and this method use the variable "n"
"n" is used in many programs and these method would overwrite your variable "n" if it wouldnt use a another namespace.
This post was edited by TragischerEinzelfall on Aug 19 2015 01:16am