// namespace15.cpp By: Aiman Hanna - ©1993-2006 Aiman Hanna // See namespace-main-15-16.cpp for details #include "namespace15.h" using region3::Calc1; using region3::dup; using region3::region31::message1; using region3::region31::region32::message2; using region3::region31::region32::region33::message3; void dup(Calc1& c1, Calc1& c2) { c1.setValue(c2.getValue()); } Calc1::Calc1(double x) { v1 = x; } void Calc1::setValue(double x) { v1 = x; } double Calc1::getValue() const { return v1; } void message1() { cout << "Hello..."; } void message2() { cout << "there..."; } void message3() { cout << "Is that really much better?\n"; }