Is there a way in c++ to perform formatted input in C-like way (with scanf %d %s %f and others)? I need to read a double, for example, and I would really like my program not to brake if user accidentally inputs some letters or other non-digits.
Forgot to mention: I need this without using scanf