+ 2
How to remove error when i enter number in char input types
3 Antworten
+ 10
+ 9
Sample:
try
{
std::cin >> stuff;
std::cin.clear(); std::cin.ignore(512, '\n');
}
catch (...)
{
std::cerr << "Invalid input.";
}
+ 2
can you show me the programme please in which you got the error