Ah, thank you!
The bottom one (where I left out "day") was just a typo, but I didn't know you had to do the same with multiple ors. Looking back now, I don't know why I thought that since it's...
Type: Posts; User: Moth
Ah, thank you!
The bottom one (where I left out "day") was just a typo, but I didn't know you had to do the same with multiple ors. Looking back now, I don't know why I thought that since it's...
I ended up adding
if (leap(year) == false && month == 2)
return ((month == 2 && day <= 28 >= 1) && (year <= 2100 && year >= 1800));
to it in case anyone is curious. I would have...
Hey, first time poster, in fact I registered for this site to ask this question, as selfish as that is.
I'm taking my first programming class, a C++ class. I've had pretty much no problems so far,...