I am a new C++ learner following Accelerated C++ and very grateful for your solutions. I can understand most parts of your code. But I am still confused about header files. What do these #ifndef or #define statements mean? You write header for every CPP file and I can't find out why we need them. Could you explain these header files please and why we need them?
#ifndef GUARD_0_3_H
#define GUARD_0_3_H
void ex0_3();
#endif // !GUARD_0_3_H
I am a new C++ learner following Accelerated C++ and very grateful for your solutions. I can understand most parts of your code. But I am still confused about header files. What do these #ifndef or #define statements mean? You write header for every CPP file and I can't find out why we need them. Could you explain these header files please and why we need them?
#ifndef GUARD_0_3_H
#define GUARD_0_3_H
void ex0_3();
#endif // !GUARD_0_3_H