#ifndef LIB1H #define LIB1H #include using namespace std; class lib1 { public: static int x; static void f(); class date { int year; //year doesn't have to be static member of date int month; int day; public: date() {cout << "lib1::date::date, x == " << x << "\n";} void print() const; }; }; #endif