#include<iostream> #include<map> using namespace std; //例题2.7 打印日期 int isLearYear(int year) { if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) { return 1; } return 0; } int main() { int y, n, res1, res2; map<int, int> maps = { {1,31},{2,28},{3,31},{4,30},{5...