Quote:
Originally posted by CoW feel free to explain how my isdigit() use is wrong, because i can't see how im using it improperly... |
sde is off in this case, your test did work (his correction did, too). but read the documentation on it very carefully, you are not using it correctly. here's a hint from the link sde included:
"isdigit() - tests if
character is a digit"
the semicolon at the end of the if statement was also technically wrong, but in this case it did not interfere with anything (it's just an empty statement).
Quote:
| as for month state... i cant see anything wrong with it... |
oh? try entering '12' for the month and see what happens. that is, when you fix your cin.
not quite. i'd advice you to look at the values of date[1] and date[2] and figure out why they are incorrect.