#include <stdio.h> #include <stdlib.h> // 引入用于标准库函数的头文件,比如exit函数 // 判断是否为闰年的函数,返回1表示是闰年,返回0表示不是闰年 int is_leap_year(int year) { return ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0); } int main() { int y, m; int n1[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; ...