problem with scanf

Nov 3, 2008 at 4:34pm
hey guys,
how do i read for an integer, and if i input a character, my program does not crush?

thks


Nov 3, 2008 at 4:46pm
Nov 3, 2008 at 5:05pm
ok, thks a lot for the link

one more question :
what is the equivalent in c++ for the 'fflush(stdin)' ?;
Nov 3, 2008 at 5:30pm
cin.flush();
Topic archived. No new replies allowed.