Compiling c++ multiple sources file
Hope you already understand the basic of c++ like functions,class etc.
C++ source file one
C++ source file two
I declared object name of the class called “Test“.
t is variable declared in the header file so tt.t mean “use the variable from class Test!”.
You can write any valid code in the function or in c++ Class method!
C++ Header file
It is just simple compiling the sources using g++ :
Thanks for reading!