#include #include "lib1.h" using namespace std; namespace lib1 { int x = 10; void f() { cout << "lib1::f: x == " << x << ", sizeof (date) == " << sizeof (date) << "\n"; } void date::print() const //definition of non-inline member function { cout << "lib1::date::print, x == " << x << "\n"; } } //no semicolon at end of namespace