// usingnamespaces.cpp #include "namespaces.h" using namespace mycode; int main(int argc, char** argv) { foo(); // implies mycode::foo(); }