Skip to content

Instantly share code, notes, and snippets.

@krupitskas
Created November 8, 2014 21:06
Show Gist options
  • Save krupitskas/d82f6e58a25d0cb49518 to your computer and use it in GitHub Desktop.
Save krupitskas/d82f6e58a25d0cb49518 to your computer and use it in GitHub Desktop.
while (cin.fail()) {
cin.clear();
cin.ignore(numeric_limits<streamsize>::max(),'\n');
cerr << "Введено некорректное значение."<<"\nВведите угол a: ";
cin >> a;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment