There's something wrong with this recursive call...I want to get the total number of days in the year so far, but I can't get the days in january added without making it fail to work if the date is in january. Thanks for the help!
int numday(int month, int day, int *total)
*total=*total+31+numday(month-1, day, total);
*total=*total+28+numday(month-1, day, total);
*total=*total+30+numday(month-1, day, total);