Im wetawded

Started by
1 comment, last by GaMe wIg 22 years, 2 months ago
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
Advertisement
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.


___________________________________

_______________________________
"To understand the horse you'll find that you're going to be working on yourself. The horse will give you the answers and he will question you to see if you are sure or not."
- Ray Hunt, in Think Harmony With Horses
ALU - SHRDLU - WORDNET - CYC - SWALE - AM - CD - J.M. - K.S. | CAA - BCHA - AQHA - APHA - R.H. - T.D. | 395 - SPS - GORDIE - SCMA - R.M. - G.R. - V.C. - C.F.
Say this 5 times:
"I am Real Tall Dead"

Feel better about yourself?

My Gamedev Journal: 2D Game Making, the Easy Way

---(Old Blog, still has good info): 2dGameMaking
-----
"No one ever posts on that message board; it's too crowded." - Yoga Berra (sorta)

This topic is closed to new replies.

Advertisement