Archived

This topic is now archived and is closed to further replies.

GaMe wIg

Im wetawded

Recommended Posts

GaMe wIg    122
Could someone be so kind as to direct me twards a tutorial on how to organize my freakin'' #include''s. Everytime, I seem to get redefinitions, infinant loops, can''t read functions from other files, etc. Like I said, I''m retarded. - GaMe wIg

Share this post


Link to post
Share on other sites
bishop_pass    109
Let''s say your .h file is called stuff.h. So, make it look like this:

  
/* this is the stuff.h file */

#ifndef _STUFF_H_
#define _STUFF_H_

// Put all the stuff you want to have in the stuff.h

// file right here. Include other files if you want.


// And now, we get to the end of your stuff.h file. Let the

// the line below be the last line in your stuff.h file.


#endif


Have all of your .h files follow that template.


___________________________________

Share this post


Link to post
Share on other sites