请问下我这个哪里错了啊
#include<stdio.h>
int main()
{
int year=2008;
int month=8;
int date=8;
int d=0,m;
for(m=1;m<month;m++)
{
d+=31;
switch(m)
{
case 2:
if(year%4==0)
{
d-=2;
}
else
{
d-=3;
}
break;
case 4:
d-=1;
break;
case 6:
d-=1;
break;
case 9:
d-=1;
break;
case 11:
d-=1;
break;
}
}
d+=date;
printf("%d",d);
return 0;
}
输出之后现实的是这个