That's scanf. This is why I like the iostreams stuff...in many cases they're a lot faster as well (all the conversions are resolved at compile-time rather than run-time).

Actually, tell a lie, some compilers can interpret printf, etc., as intrinsics and they parse the format string themselves, but they're the minority.