yes but if i take it away or modify it by adding a ; or changing it with a different name such as menu or just removing i get about 12 more erros of unsigned declorations or IntelliSense expected a declaration etc. So i have no clue how im suppose to attach the gmae
int main()
{
int yourHealth = 100;
int oppHealth = 100;
int yourAttack;
int oppAttack;
srand(time(0));
while(yourHealth > 0 && oppHealth > 0);
{
cout << "Your health: " << yourHealth << endl;
cout << "opponent's health: " << oppHealth << endl << endl;
system("PAUSE");
system("CLS");
yourAttack = rand() % 5 + 6;
oppAttack = rand() % 5 + 6;
cout << "you hit for " << yourAttack << endl;
cout << "your opponent hit for " << oppAttack << endl;
yourHealth -= oppAttack;
oppHealth -= yourAttack;
system("PAUSE");
system("CLS");
}
if(yourHealth <= 0 && oppHealth <= 0)
cout << "A double knockout!" << endl;
else if(yourHealth > 0)
cout << "you won! Congrats at winning something that took no skill you are now stupid for playing" << endl;
else
cout << "You Lose....and really suck at life" << endl;
cout << endl;
}
to the first option in the menu