Im kinda newbish right now, but is there a way to stop people from entering the wrong type of input?
If they enter a char for the input the program locks-up. Is there a way to catch those?Code:main() { int a; cout << "Enter a number"; cin >> a; }