Confuse

I'm really confused about the use of namespaces myNamespace and using namespace std. Both of which appear in the tutorial together in one program. Are these both part of the "using namespace std. library? Then the tutorial introduces "using" and "qualifying by using the symbol ::". Then I sometime see std::cout used in other programs.

The programs in that "namespaces" section of the tutorial are relatively easy for me to follow. I just get confused with all of the similarity in the syntax name. Can someone please enlighten me?
They are 2 different things see using directive and using declaration.

using Directive:

http://msdn.microsoft.com/en-us/library/aewtdfs3.aspx

using Declaration:

http://msdn.microsoft.com/en-us/library/was37tzw.aspx
Last edited on
Topic archived. No new replies allowed.