// 现写的!#include #include #define TRUE 1#define FALSE 0typedef int BOOL;int YearMouth[]={31,29,31,30,31,30,31,31,30,31,30,31,32};typedef struct Date{int year;int mouth;int day;}DATE;//判断是否是瑞让弊启年BOOL isNotRuiYear(int year){BOOL flog=FALSE;if(0==year%4 && 0==year/4%100)flog=TRUE;if(0==year%400)flog=TRUE;return flog;}void main(){DATE date;int i;int AllDay=0;//提示输入年月日坦如printf("please input int year!\n");scanf("%d",&date.year);printf("please input int mouth!\n");scanf("%d",&date.mouth);printf("please input int day!\n");scanf("卜链%d",&date.day);//计算天数if(isNotRuiYear(date.year)){for(i=0;i