Hello, I'm learning C++ now, but I can't really understand what can I do with a namespace... I don't understand what is a "namespace"...
PLZ somebody explain to me... :D

Its there to help you with name conflicts.

For example, take this code :

namespace A{ void f(){} }
namespace B{ void f(){} }

They are fine even though f() is defined twice. You can use either one like so, A::f() or B::f(). Although there is a little more details about namespace, I'll let you study those.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.