title: Is there a simpler approach to reuse code in C++ as we do with packages in java? Making a header file is comparatively complicated?
body: <p>I am using GCC C++ 11 in CodeBlocks IDE. I have been trying to reuse classes that I wrote by putting them into a header file but it doesn't work. I have looked into many books but none has detailed information on making C++ code reusable.</p>