Archived

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

Leet125

storing variables

Recommended Posts

i dont know if thats the right term but, what i want to do in my console app is store an action, so if a character picks up somthing, then later on he needs to use it, it will bring up the varibal saying if he has it or not like hasgun = 0 or hasgun = 1 also whats the code for clearing the screen but not ending the program?

Share this post


Link to post
Share on other sites
google!

either make that variable static or global... will retain value throughout program that way



RanBlade
"Passion is what drives you to stay up until 4am fixing that bug that hardly anyone would notice...Passion is where great games come from, if you dont live and breathe games you shouldn''t be in the games industry." - Dave Pottinger, Ensemble Studios

[GameDev][C++ Page][Game Tutorials][FreeBSD][HawkNL(Hawk Network Library)][NeHe Productions][Gamedev book''s]
[Virtually Online-Books][Mage Tower Ent-My Site]

Share this post


Link to post
Share on other sites