Posted by girlysprite on 00:16:00 12-22-2002
for a project on school I must write a little program in c++
I choose a little part of an adventure, with a battle.
Now I have made something for that, but it doesnt really work. It just gets stuck with the minotaur doing damage.
Can somebody help me?
This is the code;
#include
#include
#include
#include
int main(int arg, char* pszArgs[])
{
srand(time(NULL));
int nR=rand();
int nNumber= (nR%10)+1;
int nMinotaur= (nR%8)+1;
int nMyhealth= 100;
int nMinotaurhealth= 110;
int nCont;
cout 0 && nMyhealth-->0)
cout --> nCont;
if (nCont==1)
{
cout