写一个日期类就可以了,不过我这个日期类没写全,够用就行 #include <iostream> using namespace std; class Date { public: Date(int year = 0, int month = 0, int day = 0) { _year = year; _month = month; _day = day; } bool operator>(const Date& d) const { if(this->_year > d._year) return true; else if(this->_yea...