Is there a scanf.ignore function comparable to cin.ignore?

I've figured out a way to replace most all my cins and couts with scanfs and printfs with the exception of these 2:

cin.ignore();

What comparable function (that doesn't need to include <iostream> can I replace cin.ignore() with?


cout.put(character);
(where character is a char). What comparable function can I use to replace cout.put?

Thanks in advance.
I can't say I know a lot about C-style console I/O, but here are my impressions.

1. Nothing simple, as the default ignore() behavior is to ignore 1 character of input, and the only way I can think to do that is to read using %c, which I hear bad things about.

2. Probably just use printf and %c, though the exact difference between cout.put(c) and cout<<c escapes me at the moment.
Topic archived. No new replies allowed.