有问题的可以直接问我,代码简单,易懂。 #include #include int runnian(int year) { if(year%4==0&&year0;!=0||year@0==0) return 1; else return 0; } int day1(int year,int month) { int a[12]={31,28,31,30,31,30,31,31,30,31,30,31}; if (runnian(year)) a[1]=29; return a[month-1]; } int day2(int yea