Why does this thing keep looping ? .. I tried clearing the cin stream but still it loops if i enter something other than a number.
void AskQuestion()
{
DisplayQuestion();
bool Exit = false;
int input = 0;
cout<<"Input : ";
if(!(cin>>input))
{
cout<<"Invalid Input"<<endl;
cin.ignore(10000,'\n');
cin.clear();
}
else
{
Exit = ProcessInput(input);
}
if(!Exit) AskQuestion();
}