哪里有问题啊,求看看
#include <stdio.h>
int main()
{
/* 定义需要计算的日期 */
int year = 2008;
int month = 8;
int day = 8;
int ted
/*
* 请使用swtich语句,if...else语句完成本题
* 如有想看小编思路的,可以点击左侧任务中的“不会了怎么办”
* 小编还是希望大家独立完成哦~
*/
switch(month)
{
case 12=ted+=31;
case 11=ted+=30;
case 10=ted+=31;
case 9=ted+=30;
case 8=ted+=31;
case 7=ted+=31;
case 6=ted+=30;
case 5=ted+=31;
case 4=ted+=30;
case 3=ted+=31;
case 2=if(year%400!=0&&year%4==0){
ted+=29;
}
else
{
ted+=28;
}
case 1=ted+=31;
}
printf("%d年%d月%d日是这一年中的第%d天",year,month,day,ted);
return 0;
}求给看看啊,哪里有问题,我也不知道了