1942번 c++
#include using namespace std; class calendar {private:int datenum[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 };string ansmonth[7] = { "SUN", "MON", "TUE", "WED", "THU" , "FRI", "SAT" };int month;int date;int sumofdays; public:void setDate() {cin >> month >> date;sumofdays = 0;}void coutdays() {while (month > 1) {month -= 1;sumofdays += datenum[month - 1];} sumofdays += date;}void printdate() co..
2018. 12. 31.