is it a compiler issue? is it always returning invalid date? is it just not returning what you want it to? We don't usually do all of the book work ourselves, you have to tell us what's going on and what you're trying to do as well.
And yes, we can read code. it looks like your main problem is with your if statement
note: by we, i am refering to the many kind people on this forum, though i do not intend to speak for any specific person, just the actions taken on this forum in general
you just include <fstream>, at your level, i'm honestly gonna say don't worry about fstream.h
@seraphimsam haha, i'm surprised, but it's probably because i'm using MS visual studio 2010 that i was forced into it so quickly. I'm not able to use regular strings or c strings with fstreams at all.
dude, make sure you use the code format brackets.... it will be a lot more helpful
I think the latter return statement or something... I never used return 0 within an if statement. Can someone please tell me if that's alright... does return 0 simply mean that the current block of code was executed fine? I thought that meant that the whole block of program completed successfully and it's alright to terminate the program.
Also can you post the whole entire source code page... That will definitely help us. and make sure you use the code format brackets please :)