没连续相加
int year = 2008;
int month = 8;
int day = 8;
int a = day;
switch(month)
{
case 1:
day+=0;break;
case 2:
day+=31;break;
case 3:
if((year%4 == 0&& year%100!=0)||(year%400 ==0))
{
day+=29;break;
}
else
{
day+=28;break;
}
case 4:
day+=31;break;
case 5:
day+=30;break;
case 6:
day+=31;break;
case 7:
day+=30;break;
case 8:
day+=31;break;
break;
case 9:
day+=31;break;
case 10:
day+=30;break;
case 11:
day+=31;break;
case 12:
day+=30; break;
}
printf("%d年%d月%d日是该年的第%d天",year,month,a,day);
请问我这里出现了什么问题该怎么修改?