How do i write program in C++ to check if a date is before April 5,2008?
I have this if statement:
if(month<=4||day<5&&year<=2008)
but it is not evauluting day correctly. What i am trying to do is see if a date (from a file) is before april 5,2008. I am reading month and day separately.
Does anyone know how to code this?