Hey i need some help working out wether a year is a leap year or not. Just needs to return a boolean value. What would be placed in my code?
I've tried a few things and certain dates dont return a correct value. I know its something to do with dividing by 100 and 400 but i cant get it right.Code:bool Date::isLeapYear() { }
Cheers.