More Information on Namespaces with Nested Namespaces in c++
This video tutorial explains about the nested namespaces in c++ programming.
You are gonna learn how to declare a namespace in a file, how the namespace in different files, how to nest the namespaces, how to access the members of a namespace when it is nested and some other information in detail with example.
source code for this tutorial
#include <iostream>
using namespace std;
namespace one{
int i;
namespace two{
int j;
}
}
int main()
{
one :: two :: j = 10;
cout << one :: two :: j ;
return 0;
}