Page 2 of 2

Re: Life bar (WIP)

Posted: Thu Nov 13, 2008 8:52 pm
by dandymcgee
MarauderIIC wrote:

Code: Select all

while (life > 0) { ... }
would work fine, use it (easier to read)
Yeah, in this case it doesn't make a bit of difference, I just generally tend to put any sort of variable check after the first update.
system ("pause");
PLEASE replace this with cin.get();. If you really need a detailed explanation why:
http://www.google.com/search?q=system("pause")