hackingcpp / comments

Comments regarding hackingcpp.com
0 stars 0 forks source link

cpp/recipe/istream_recover_from_errors #39

Open utterances-bot opened 9 months ago

utterances-bot commented 9 months ago

Recover From C++ Input Stream Errors | hacking C++

How to recover from standard input stream reading errors, e.g. when reading user input from std::cin.

https://hackingcpp.com/cpp/recipe/istream_recover_from_errors.html

anusarati commented 9 months ago

Thanks, I didn't know that failed extractions left the character available to re-extract right after a clear().