cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
preprocessor
preprocessor
Oct 20, 2013 at 12:26am UTC
Sharan123
(352)
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
Oct 20, 2013 at 4:35am UTC
vin
(300)
In how many files of the same project did you write
#include "anything.h"
?
Last edited on
Oct 20, 2013 at 4:37am UTC
Oct 20, 2013 at 6:10am UTC
vasilenko93
(87)
http://en.wikipedia.org/wiki/Include_guard
http://www.cplusplus.com/forum/general/71787/
Oct 20, 2013 at 2:32pm UTC
Sharan123
(352)
in all three .cpp files that needed the header files functions prototypes and data
Topic archived. No new replies allowed.