   Namespaces and multiple files
  Ok I tried to use a namespace I created in one file as a global namespace. How do I get that namespace to be seen by other files? I have it in my .cpp file. I am assuming it needs to be in the header file somewhere instead? I wouldn''t think I need to use extern or do I? My book sucks for namespace examples. Thanks 
  like this:My.h: namespace MyNamespace {  class MyClass {int v;    void f();  };  void myFunction();}My.cpp: namespace MyNamespace {  void MyClass::f() {    // function definition  }  void myFunction() {    // function definition  }}in your main.cpp: #include "My.h"int main(int argc, char* argv[]) {  MyNamespace::MyClass obj1;  obj1.f();  MyNamespace::myFunction();  return 0;}Regards,Jeff    [ Little Devils Inc. ]    