这题二月哪有问题求解啊
#include <stdio.h> int main() { int year = 2008; int month = 8; int day = 8; int d=0; switch(month-1) { case 1:d+=31; case 2:if((year%4==0&&year%100!=0)||year%400==0)d+=29;else d+=28; case 3:d+=31; case 4:d+=30; case 5:d+=31; case 6:d+=30; case 7:d+=31; case 8:d+=31; case 9:d+=30; case 10: d+=31; case 11:d+=30; case 12:d+=31; } printf("2008年8月8日是该年的第%d天",d+8); return 0; }