View Single Post
Old 11-03-2003, 11:45 PM   #9 (permalink)
joe_bruin
LOAD "*",8,1
 
Join Date: Feb 2003
Location: la.ca.us
Posts: 254
joe_bruin is on a distinguished road
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.

Quote:
my cins are fine.
not quite. i'd advice you to look at the values of date[1] and date[2] and figure out why they are incorrect.
joe_bruin is offline   Reply With Quote