摘要:
int year,month,day,sum;printf("请输入年,月,日以逗号分割:");scanf("%d,%d,%d",&year,&month,&day);switch(month){case 1:sum=0;break;case 2:sum=31;break;case 3:sum=59;break;case 4:sum=90;break;case 5:sum=120;break;case 6:sum=151;break;case 7:sum=181;break;case 8:sum=212;break;case 9: 阅读全文