#include #include using namespace std; //using directive #include "lib1.h" #include "lib2.h" using namespace lib1; //using directive int main() { cout << x << "\n"; //lib1::x and std::cout cout << lib2::x << "\n"; f(); //lib1::f lib2::f(); date d1; //lib1::date lib2::date d2; return EXIT_SUCCESS; }