supose
i have to input a series of integer and count for odd and even number.
However, would not allow to input character if mistake. In order to do that,
the program should return to begin, but not to exit.
I use
cout<<"Enter an integer: ";
cin>>integ;
if (!cin)
{cout<<"Enter again";
cin>>integ;
}
but the program still exit.
anyone can help?