计算日期差值 C实现
摘要:
#include "stdafx.h"#include "math.h"#include <cstdio>using namespace std;bool IsRunYear(int y){ bool result=false; if(y%4==0&&y%100!=0||y%400==0) result=true; return result;}int MaxDay(int m,int y){ int result; if(m==1||m==3||m==5||m==7||m==8||m==10||m==12) result=3 阅读全文
posted @ 2011-09-11 20:43 rita zhao 阅读(311) 评论(0) 推荐(0)
浙公网安备 33010602011771号