View Single Post
Old 11-04-2003, 11:09 AM   #13 (permalink)
joe_bruin
LOAD "*",8,1
 
Join Date: Feb 2003
Location: la.ca.us
Posts: 254
joe_bruin is on a distinguished road
finished and working? seems to have a bunch of errors in it.

why does it print "February" when i enter "1" for the month?
if i enter "1/1/2000" it still doesn't work.

you have the following warnings.:
test.cpp: In function `int dateValid ()':
test.cpp:43: warning: no return statement in function returning non-void
test.cpp: In function `int monthState ()':
test.cpp:55: warning: no return statement in function returning non-void

those semicolons at the end of your functions (ex "};") don't belong there (like sde pointed out previously).

i don't mean to be hard on you, i'm just telling you what is wrong and hoping you learn by fixing it.
joe_bruin is offline   Reply With Quote