Keep it simpler, it's C++, not Pascal

:
//checks for leap year
bool checkLeapYr(int year)
{
return year%4 == 0 && (year %100 != 0 || year%400 == 0);
}//end function check leap year//checks for leap year
Last edited by ArkM; Nov 12th, 2008 at 9:42 am.
Reputation Points: 1234
Solved Threads: 347
Postaholic
Offline 2,001 posts
since Jul 2008