View Single Post
Old 02-22-2005, 06:40 AM   #4 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
You can easely optimize the leap year function:
Code:
bool is_leap_year(int year)
{
      if( year % 4 ) return false;  
      if( year < ReformYear ) return true; 
      if( year % 100 ) return true; 
      if( year % 400 ) return false;      
      return true;
}
But what exactly is it that you need us for? What is the concrete question or request?
__________________
Valmont is offline   Reply With Quote