思路非常简单 即设计一个保存日期的类 在这个类中添加日期自增1和打印日期的功能即可 #include <iostream> using namespace std; static const int month[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} }; static const int year[2]={365,366}; class Date { public: Date()=default; Date(int YY,int MM,in...