| 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. |