C++ examples for Statement:namespace
Adding Names into Other Namespaces with the using Declaration
#include <iostream> using namespace std; namespace A/*from ww w . ja v a2 s . c o m*/ { int X; } namespace B { using A::X; } int main() { A::X = 2; cout << B::X << endl; return 0; }