摘要: 1 //1.3.5.7.8.10.12都是31天的,2月份有28或29天,4.6.9.11只有30天 2 //闰年2月则含有29天。非闰年2月含有28天 3 #include 4 int montha(int year,int month) 5 { 6 if(month==2) 7 { 8 if((year%4==0 && year%100!=0) || year%400==0) 9 return(29); //是闰年10 else 11 return(28); //不是闰... 阅读全文
posted @ 2014-02-27 14:57 渊源、 阅读(230) 评论(0) 推荐(0)