一年的第几天
程序代码:
#include<stdio.h> main() { int year,month,day; int DAY; scanf("%d,%d,%d",&year,&month,&day); month=month-1; switch(month) {case 12:; case 11:DAY+=30; case 10:DAY+=31; case 9:DAY+=30; case 8:DAY+=31; case 7:DAY+=31; case 6:DAY+=30; case 5:DAY+=31; case 4:DAY+=30; case 3:DAY+=31; case 2: DAY=(year%4==0&&year%100!=0||year%400==0)?(DAY+29):(DAY+28); case 1:DAY+=31;break; default:printf("error\n"); } DAY=DAY+day; printf("%5d",DAY); } 请问我这个错在那俩