资 源 简 介
一个简易日历程序,已知公元元年一月一日即耶稣诞生日是星期一,那么因为365%7=1,366%7=2。所以每过一年平年星期数加一,每过一年闰年星期数加二,依次类推就可以求出任意一年一月一日是星期几。-a simple calendar program, known Year on January 1 that the first year of the birth of Jesus Day is Monday, because 365% = 1,366 7% 7 = 2. So every non-leap year over year increase in a few weeks, a leap year every year the number increases two weeks, followed by analogy can be found arbitrary January 1, 2001 is several weeks.