摘要: 一、闰年定义非整百年数,可以整除4为闰年;整百年数,整除400为闰年。例如:1996为闰年;2000为闰年;1900不是闰年。二、闰年程序1.bool isLeapYear( int year ){ return year % 400 == 0 || (year % 4 == 0 && year %... 阅读全文
posted @ 2015-04-06 20:14 2班&王艺蓉 阅读(163) 评论(0) 推荐(0) 编辑