#include <iostream> using namespace std; //将闰年和平年的月份日期存在二维数组数组中 int days[2][13]={ {0,31,28,31,30,31,30,31,31,30,31,30,31}, {0,31,29,31,30,31,30,31,31,30,31,30,31} }; bool IsLeapYear(int year)//判断是不是闰年 { return (year%4==0&&year%100!=0)||(year%400==0); } int main() { int ...