这么写为什么不行啊
#include <stdio.h>
int main()
{
/* 定义需要计算的日期 */
int year = 2008;
int month = 8;
int day = 8;
int sum =0;
int er =0;
switch(month)
{
if(year%4==0&&year%400==0)
{
er=29;
}else
er=28;
case 1:
sum +=day;
case 2:
sum +=day+31;
case 3:
sum +=day+er+31;
case 4:
sum +=day+er+31+31;
case 5:
sum +=day+er+31+31+30;
case 6:
sum +=day+er+31+31+30+31;
case 7:
sum +=day+er+31+31+30+31+30;
case 8:
sum +=day+er+31+31+30+31+30+31;
case 9:
sum +=day+er+31+31+30+31+30+31+30;
case 10:
sum +=day+er+31+31+30+31+30+31+30+31;
case 11:
sum +=day+er+31+31+30+31+30+31+30+31+30;
case 12:
sum +=day+er+31+31+30+31+30+31+30+31+30+31;
printf("在计算润年的时候,%d月是%d天",month,sum);
}
return 0;
}