1. ## SOLVED:Infinite Loop!!!

Code:
``` void guessinggame()
{
cout<<"\n\n--------------------------------------------------\n\n";
cout<<"GUESSING GAME\n\n";
cout<<"You will have 4 guess to guess a number between 0 and 30.\nGOOD LUCK!\n\n";
guessinggame();
}

//*****************************************
//*                                       *
//*         GUESSING GAME CONT            *
//*                                       *
//*****************************************

void guessinggamecont()
{
int input;
int choice;

for (int x=0; x<5; x++){
cin>>input;
if (input == 17){
x=6;
cout<<"You are correct, thank you for playing the guesing game.\nYou will now be taken back to the Control Center.";
cin.get();
desktop;
}
else {
x++;
}
}
cout<<"Sorry, but you were unable to guess the secret number.\nWould you like to play again?";
cout<<"\n\n1.)Yes\n2.)No\n\nSelection:";
cin>>choice;
switch (choice){
case 1:
guessinggamecont();
break;
case 2:
desktop();
break;
default:
cout<<"INTERNAL ERROR [696E76616C696420656E74727900]";
cin.get();
cin.get();
return;

}
}```
i found me error

Code:
``` void guessinggame()
{
cout<<"\n\n--------------------------------------------------\n\n";
cout<<"GUESSING GAME\n\n";
cout<<"You will have 4 guess to guess a number between 0 and 30.\nGOOD LUCK!\n\n";
guessinggame();
}```

it kept calling upon it self, it should have been:

Code:
``` void guessinggame()
{
cout<<"\n\n--------------------------------------------------\n\n";
cout<<"GUESSING GAME\n\n";
cout<<"You will have 4 guess to guess a number between 0 and 30.\nGOOD LUCK!\n\n";
guessinggamecont();
}```

2. I don't see one off the top of my head but I do see a logic error:
Code:
`for (int x=0; x<5; x++){`
Code:
`else {x++;`
On a bad guess you'll increment twice

3. >MOD PLEASE DELETE, I FIXED MY PROBLEM!
No! This is an open, public forum. You don't delete your question when it's solved, you leave it so that others can learn from it and discuss the solutions that were suggested. I'm sorry, I don't give out red rep often, but this is just bad form. I strongly disapprove.

4. Originally Posted by Prelude
>MOD PLEASE DELETE, I FIXED MY PROBLEM!
No! This is an open, public forum. You don't delete your question when it's solved, you leave it so that others can learn from it and discuss the solutions that were suggested. I'm sorry, I don't give out red rep often, but this is just bad form. I strongly disapprove.
its back up. sorry.