include int main() { int sum=0; int i; int month[12]={31,28,31,30,31,30,31,31,30,31,30,31}; int yeal,mon,day; printf("输入日期,格式为‘yeal,month,day’,如2012,11,23\n"); scanf("%d,%d,%d",&yeal,&mon,&day); if((yeal%400==0小编喜欢看着你那甜甜的笑容,一刹那温暖小编的心。
给定某个年,月,日,计算出这一天是属于该年的第int totalday(int year,int month,int day)//计算天数函数 { int leap(int);//声明 int judge; judge=leap(year);//调用 int total_day=0; month-=1; switcg(month) { case 11:total_day+=30; case 10:total_day+=31; case 9:total_day+=30; cas