Code /* namespace2.cpp CIS 250 David Klick 2005-03-07 Demonstration of namespace usage. */ #include using std::cout; using std::endl; #include "Dave.h" int main(void) { int x = 5; cout << x << " " << Dave::x << endl; // The following line won't compile because y is // not fully qualified with "Dave::" and does // not otherwise exist within this scope since // there is no using statement that includes it. // cout << y << endl; using Dave::y; cout << y << endl; return 0; }