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.