// namespace13.cpp By: Aiman Hanna - ©1993-2006 Aiman Hanna // See namespace-main-13-14.cpp for details #include "namespace13.h" #include "namespace14.h" using namespace region3; using namespace region31; using namespace region32; using namespace region33; // The following would still be ok // using namespace region3::region31; // using namespace region3::region31::region32; // using namespace region3::region31::region32::region33; void region3::dup(Calc1& c1, Calc1& c2) { c1.setValue(c2.getValue()); } region3::Calc1::Calc1(double x) { v1 = x; } void region3::Calc1::setValue(double x) { v1 = x; } double region3::Calc1::getValue() const { return v1; } void region31::message1() { cout << "Hello..."; } void region32::message2() { cout << "there..."; } void region33::message3() { cout << "That is a bit better! Right?\n"; }