I dont get how to avoid multiple includes.
The task is simple:
We have 2 (for example) source files and one header file. We want to use this header for both sourse files.
I have found some explanation of this issue but its hard to understand.
All I know is :
1) Using #pragma once is a bad practice for some reason.
2) I must to use #ifdef (ifndef actually), #define, and #endif.
But how?! I dont get it...
Any help is appreciate.