WEEKA
2014-10-20 12:13:23 1 举报
asd
作者其他创作
大纲/内容
totalDays += 365
totalDays += day
i++
Y
month 12
i year
year 0 || month 0 || day 0
MonthDays[1] = 29
((i % 4 == 0) && (i % 100 != 0)) || i % 400 == 0
tempDay == 0
i==2
return 0
int tempDay = totalDays % 7
int i = 1
int i=1
day MonthDays[month - 1]
tempDay = 7
((year % 4 == 0) && (year % 100 != 0)) || year % 400 == 0
totalDays += MonthDays[i - 1];
return -2
totalDays += 366
return tempDay
return 1
imonth
((year % 4 == 0) && (year % 100 != 0)
return -3
int totalDays = 0
year 10000
0 条评论
下一页