请问这样写可以吗
#include <stdio.h>
int main()
{
/* 定义需要计算的日期 */
int year = 2008;
int month = 8;
int day = 8;
switch (month)
{
case 12: day+=30;
case 11: day+=31;
case 10: day+=30;
case 9: day+=31;
case 8: day+=31;
case 7: day+=30;
case 6: day+=31;
case 5: day+=30;
case 4: day+=31;
case 3:
{
if (year%100==0?year%400==0:year%4==0)
day+=29;
else
day+=28;
}
case 2: day+=31;
}
printf ("%d",day);
}