preprocessor

Why do we need to write
#ifndef ANYTHING_H//
#define ANYTHING_H
#endif
in wrapping the class it doesnt cause any problem when i don't write so it says to
stop multiple inclusion but i can't understand
In how many files of the same project did you write #include "anything.h" ?
Last edited on
in all three .cpp files that needed the header files functions prototypes and data
Topic archived. No new replies allowed.