Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
inline bool isLeapYear(int y)
{
return y%4 == 0 && (y%100 != 0 || y%400 == 0);
}
int day_in_month(int month, int year)
{
int d;
... // as in Salem's post
d = days...
if (month == 2 && isLeapYear(year))
++d;
return d;
}