Wednesday, October 21, 2009

Preprocessor Header Files

To avoid header files getting called more than once, use the following code in the header file to create a preprocessor header file:
#ifndef YOURHEADERFILE_H
#define YOURHEADERFILE_H

HERE YOU ADD YOUR MEMBER FUNCTION AND DATA MEMBER PROTOTYPES

//At the VERY end of the header file, type the following to wrap it
//all up like a cheeseburger:
#endif

And that, my friends, is all she wrote!

No comments:

Post a Comment