#include <stdio.h> // 获取某年某月的天数 int GetMonthDay(int year, int month) { int monthArray[13] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; if (month == 2 && ((year % 400 == 0) || (year % 4 == 0 && year % 100 != 0))) { return 29; } return monthAr...