should i include all the user-defined namespaces in the header files? what if i want to include something like int x; or function definitions inside a namespace?
(tl;dr - you can't define variable in header; use extern keyword, and define var in .cpp file)
Basically, in filex.cpp you only define variables or functions. Declare them in header file, and use them in your code.