Victor Bazarov wrote:
E. Robert Tisdale wrote:
Victor Bazarov wrote:
Read the FAQ (http://www.parashift.com/c++-faq-lite/),
your question and an answer has been put there.
I couldn't tell which FAQ you were talking about
and I don't think that Nafai could either.
[15.3] How can I get std::cin to skip invalid input characters?
[5.5] What do I do if someone else posts a question
that's already in the FAQ?
And see note #1.
Note #1: Please don't give them the location
of the appropriate FAQ. E.g., don't say,
"Look at FAQ [10.3]" or "Look in section [10]".
It's the old give-them-a-fish vs. teach-them-to-fish problem.
This is bad advice. It contradicts
Note #2: Please be polite. I'm hoping we can avoid
"RTFM" or "RTFFAQ" euphemisms (or worse!).
Please *don't* send new subscribers on a "wild goose chase".
Cite and quote the relevant FAQ
just as if you were citing and/or quoting a relevant passage
from the ANSI/ISO C++ standards documents.