![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C语言
暮夏的风
这个作者很懒,什么都没留下…
展开
-
C语言 判断平年闰年判断
/***@brief 判断某一年是闰年还是平年*@param nYear 年份,例如:2019*@return*@li 1 闰年@li 0 平年/int FuncLeapYearChk(const int nYear){/* 1.该年份能被 4 整除同时不能被 100 整除* 2.该年份能被 400 整除*/if ((nYear%40 && nYear%1...原创 2019-09-23 22:46:24 · 2825 阅读 · 0 评论 -
C语言 根据年月日判断是今年的第几天
/***@brief 判断某一天是今年的第几天*@param nYear 年*@param nMonth 月*@param nDay 日*@return*@li nDays 返回xxxx年xx月1日,是xxxx年的第nDays天;*/int Func(const int nYear, const int nMonth, const int nDay){int nD...原创 2019-09-23 22:48:03 · 802 阅读 · 0 评论