View Single Post
Old 11-03-2003, 08:17 PM   #5 (permalink)
CoW
Registered User
 
CoW's Avatar
 
Join Date: May 2003
Location: Paris, France
Posts: 31
CoW is on a distinguished road
Send a message via AIM to CoW
Quote:
Originally posted by joe_bruin
well, you have several bugs in your program.

your use of isdigit() is incorrect.
your monthState() has an off-by-one error.
i think the way you cin dates is wrong as well, but it's been quite a while since i've used cin, so i'm not sure about it.

try writing a small component of the program at a time. compile, test, fix, test, fix, test, ..., and when you're confident it works, go on to the next part.

feel free to explain how my isdigit() use is wrong, because i can't see how im using it improperly...

as for month state... i cant see anything wrong with it...

my cins are fine.
CoW is offline   Reply With Quote