判断年份是闰年还是平年-----看看再那错了!!!!
#include <stdio.h>void main()
{
int year;
int month;
int day;
int days;
int i,g;
int month_day[]={0,31,28,31,30,31,30,31,31,30,31,30,31};
printf("输入年月日:\n");
scanf("%4d %02d %02d",&year,&month,&day);
days=day;
if(year%400==0||year%4==0&&year%100!=0)//
if(g)
month_day[2]={29};
for (i=1;i<month;i++)
days=days+month+month_day[i];
printf("%4d/%02d/%02d是本年的第%d天\n",year,month,day,days);
}