okay so i am working on this very basic game to help cement some programming information i going over into my brain. i can't figure out what is wrong with my loop.
the code gets to the while loop and the gets stuck.. anyone know whats going on?
thanks in advance!Code:#include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]){ int GameEnd =0; int Option; int RockysPow =3; int ApollosPow =10; cout<<"Welcome to Rockys Punch Out Adventure!\n" "created by sean wilson.\n"; system("PAUSE"); while (GameEnd != 1);{ cout<<"would your like to..\n"; cout<< "1: train to fight\n"; cout<< "2: take on Apollo Creed\n"; cin>> Option; if (Option == 1){ RockysPow++; cout<<RockysPow; } else {if (Option == 2){cout<<"option 2\n";} else {cout<< Option <<" is not a valid entry.";} } } system("PAUSE"); return EXIT_SUCCESS; }