Im wetawded
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
Let''s say your .h file is called stuff.h. So, make it look like this:
Have all of your .h files follow that template.
___________________________________
/* 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.
___________________________________
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement