here(year,j);}?printf("输入所查日历的年月");?scanf("%d%d",&m,&n);?Z=how(m);?for(j=1;j<=n-1;j++)?{ D=where(m,j); Z=Z+D;?}?d=Z%7;?printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");?printf("%d月份\n",j);?printf("sunmontuewedthufrisat\n");?if(d<6)?for(di=1;di<=d+1;di++) printf("");?for(did=1;did<=where(year,j);did++)?{printf("%d",did);?if(did<10)?printf("");?else?printf("");?if(did==6-d||(did-6+d)%7==0||did==where(year,j)) printf("\n");}?printf("输入年月日");?scanf("%d%d%d",&x,&y,&z);?Z=how(x);?for(j=1;j<=y-1;j++)?{ D=where(x,j); Z=Z+D;?}?Z=Z+z;?printf("输入当前年月日");?scanf("%d%d%d",&h,&k,&l);?Z1=how(h);?for(j=1;j<=k-1;j++)?{ D=where(k,j); Z1=Z1+D;?}?Z1=Z1+l;?jian=Z1-Z;?printf("输入日期距今有%d天\n",jian);?d=Z%7;why(d);?when(y,z);}函数释意how()计算公元一年一月一日到输入年份之前的总天数的函数where()实现判断每月天数的函数when()实现判断输入日期是星期几的函数why()实现判断输入日期是否为法定节日的函数