// namespaces.cpp #include namespace mycode { void foo() { std::cout << "foo() called in the mycode namespace" << std::endl; } }