I believe that you should also have your own header files, which may be required in other cpp files and header files. Like the one you gave
#include <stringLib1.h> #include <stringLib2.h>
In my opinion, it is better to create one common header file, which includes all the common library header files and the project header file. This file can then be included in all other cpp files and the header file. And it will be better to use header protectors.
So, given the general header file "includes.h".
#ifndef INCLUDES_H #define INCLUDES_H #include <string> #include <stringLib1.h> #include <stringLib2.h> /***Header files***/ #endif //INCLUDES_H
Now this is your common header file. This can be included in all of your project files.
Arpit source share