problem with scanf

hey guys,
how do i read for an integer, and if i input a character, my program does not crush?

thks


ok, thks a lot for the link

one more question :
what is the equivalent in c++ for the 'fflush(stdin)' ?;
cin.flush();
Topic archived. No new replies allowed.