I\'m new to programming in C++ with header files. This is my current code:
//a.h #ifndef a_H #define a_H namespace hello { class A { int a; public:
You need to compile and link both source files, e.g.:
g++ ex2.cpp a.cpp -o my_program