#include //判断闰年 void f(year) { int year,day; if(year%4==0&&year%100!=0||year%400==0) return 1; else return 0; } void max_day(int year,int month) { int month_day[12]={31,28,31,30,31,30,31,31,30,31,30,31}; if(f(year)==1) mouth[1]=29; return month_day[month-1]; } //year总天数 void max_day(int year,int month,int day) { int sum=0,i; for(i=1;i