版主再帮帮忙.....
题目:
打印万年历
谢谢你版主......能不能帮我看看以下的程序有没错......
#include int week(int year,int month,int day,int n); void monthout(int year,int month); main() { int n,s,year,month,day,i;printf(" =========================================================\n === 日期查询程序 ===\n
========================================================="); do { printf("\n->>> 请选择要进行的操作\n [1]查询某天 [2]查询某月 [3]查询某年 [0]退出\n"); scanf("%d",&s); switch(s) { case 1:printf("请输入 year month day:\n "); scanf("%d%d%d",&year,&month,&day); if (month<0||month>12) { printf("\n !!-->>there's some thing wrong with month\n");break;}
}