#include <iostream> using namespace std; //计算当年月和日的天数 int GetMonthDay(int year, int month, int day) { int GetMonthday[13] = {0,31,59,90,120,151,181,212,243,273,304,334,365}; int monthday = GetMonthday[month - 1] + day; if((year % 4 == 0 && year % 100 != 0) || (year % 400 ==...