看不懂有人解释下吗
switch(month-1)
{
case 12:day+=31;
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:if((year%4==0 && year%100) || year%400==0) day+=29; else day+=28;
case 1:day+=31;
}
printf("2008年8月8日是该年的第%d天",day);
为什么是month-1