0Day Forums
[C pointers]Little suicide game - Printable Version

+- 0Day Forums (https://0day.red)
+-- Forum: Coding (https://0day.red/Forum-Coding)
+--- Forum: C & C++ (https://0day.red/Forum-C-C)
+--- Thread: [C pointers]Little suicide game (/Thread-C-pointers-Little-suicide-game)



[C pointers]Little suicide game - vlada416 - 06-21-2011

So, I have learned a bit about pointers and decided to make a little program that uses them.
Its a simple game, where you can heal yourself or attack yourself. With every attack, you dmg will grow by 1.

The game won't stop when your life is on 0... I did it just for sake of the pointers :smile:

Hidden Content

Have a great day!!!


RE: [C pointers]Little suicide game - guiltless193 - 07-30-2011

well, actually not even if your HP is 0, but even minus (the limit of int)
CMIIW