#include <iostream>
using namespace std;
int main (void)
{
int n;
label0:
cout<<"Please an integer value\n";
cin>>n;
if ( cin.fail() )
{
cout<<"Please enter proper value\n";
cin.clear();
goto label0;
}
else
{
cout<<"You entered"<<n<<"\n";
}
return 0;
}
它在给出整数输入方面非常有效,但是当我输入非整数输入时,为什么它会进入无限循环?