I am using this code:
printf("Please enter the month as a number> "
scanf("%d", &entered_month);
entered_month is declared as an integer. If the user puts a letter or string when asked this question, the program goes wacko on me. I tried validating using isdigit(), but then I get and error message from the system. Can anyone help?
Thanks!
Erica
printf("Please enter the month as a number> "
scanf("%d", &entered_month);
entered_month is declared as an integer. If the user puts a letter or string when asked this question, the program goes wacko on me. I tried validating using isdigit(), but then I get and error message from the system. Can anyone help?
Thanks!
Erica