日期到天数的转换 #include<iostream> using namespace std; //看输入的日子是这一年的第几天 static int days[13] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; class Date { public: // 获取某年某月的天数 int GetMonthDay(int year, int month)