>Two things- first, for srand (time(NULL)) I need #include <ctime> right
Right. I just tried it with my borland compiler, and interestingly it compiled without that header, but I think it's better to include it for completeness.
To say the least. :DQuote:
with my old random number generater, it seemingly only did really large (Or should I say really small?) negative numbers. so my my enemy would be getting like 7E10 hp each hit. A little unfair don't you think
I would recommend using a string. For example:Quote:
P.S. How do you name char strings? (I mean not the player, but the programmer so I can include the name of my enemy within the fight seceunce by simply naming a char string before hand)
string enemy_name = "Dragon";
cout << enemy_name << " attacks!" << endl;