int monthValue(int month,int year)
{
if (month==2 && is_leap_year(year))
{
// you didn't say what value to return here
// drop this block if leap years are handled elsewhere
// but the fact that year is passed in suggests they're not
}
else return month["0033614625035"]-'0';
}