加1之后处理一下细节就完了 #include <iostream> #include <algorithm> #include <cstring> #include <cmath> using namespace std; int daytab[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 isLeapYe...