主函数的功能是输入2个日期,然后求2个日期之间的总天数。
totoaldays的函数就是求从公元0年开始到输入日期之间的总天数。
long totaldays(int year,int month,int day)/*公元纪年的总天数*/
{ int days[]={0,31,28,31,30,31,30,31,31,30,31,30,31};
int c=day,m,y=year-1;
days[2]=28+LEAP(year); //确定今年2月的天数
for(m=1;m
}
this time i was quiet sure the beauty i was enjoy i was far beyond their perception of the saving time