I have two more questions.
The 1st question is that I want the player start the game by pressing enter and end the game by entering "no", but I fail! The game doesn't start by just pressing enter...what should I do to fix it ?
1 2 3 4 5 6 7 8 9 10
bool playthegame=true;
cout<<"You wnat to play the game ? )";
char choice;
cin>>choice;
if (choice=="No"||choice=="No"||choice=="NO"||choice=="nO"||choice=="n"||choice=="N")
playthegame=false;
elseif (choice=="a")
playthegame=true;
while (playthegame==true)
{....}