#include <iostream> //包含输入输出库
//#include <regex>
using namespace std;
bool LeapYear(int);
bool LeapYear(int year)//判断闰年
{
year = year;
bool isLeapYear;
isLeapYear = (((year%4==0)&&(year%100!=0))||(year%400==0));// 四年一闰,百年不闰,400年再闰
effective C++笔记(一)不明确行为
最新推荐文章于 2024-05-07 10:09:41 发布