#include #include #include #include<> // 每月天数 #include int month_day(int year,int month) { switch(month) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: return 31;break; case 4: case 6: case 9: case 11: return 30;break; case 2: if((year%4==0)&&(year%100!=0)||(year%400==0)) { return 29; break; } else { return 28; break; } } } // 年历 void year_calendar(int year) { int month,days,weekday,sum_day; int i,j; year; printf("请输入要查询的年份:"); scanf("%d",&year); for(i=1;i