#include #include using namespace std; //using directive #include "lib1.h" #include "lib2.h" using lib1::x; //using declaration using lib2::f; //using declaration int main() { cout << x << "\n"; //lib1::x cout << lib2::x << "\n"; //override the using declaration f(); //lib2::f lib1::f(); //override the using declaration lib1::date d1; //didn't write a using declaration for these lib2::date d2; return EXIT_SUCCESS; }