int value=0;
cout<<"enter your play ";
while (!(cin>>value))
{
cin.clear();
cin.ignore(80,'\n');
cout<<"enter a number please ";
}
cout<<"good";
This is my input check.
why does it work perfectly on letters and not for doubles??
If I input a letter it behaves perfectly, if I try a double it crashes..
Any idea why?