摘要: A//输入生日和日期,计算你活了多少天#includeint is_year(int year){if((year%4==0&&year%100!=0)||(year%400==0)){year=1;}else year=0;return year;}int is_mouth(int year,int mouth,int day){day=0;if(mouth==2){if(is_year(year)){day=29;}else day=28;}else if(mouth==0) day=0;else if(mouth==4||mouth==6||mouth==9||mouth 阅读全文
posted @ 2013-11-30 11:15 李双45678 阅读(224) 评论(0) 推荐(0) 编辑