코드를 어떻게 선언합니까? 일요일뿐만 아니라 다른 날도 있습니다.오늘 신고 방법?
#include <iostream>
using namespace std;
int main() {
int temperature;
char day = SUNDAY;
cout << "Enter your body temperature:" << endl ;
cin >> temperature ;
cout << "Enter what day:" << endl ;
cin >> day ;
if ((temperature > 40) && (day == SUNDAY))
cout << "Take sick certificate" << endl ;
else if (temperature > 40)
cout << "Do a light work" << endl ;
else if (temperature > 50)
cout << "Go to hospital!" << endl ;
else
cout << "Go to work" << endl ;
system("PAUSE");
return 0 ;
}
아마도 숙제 표를 잊어 버렸을 것 같습니까? –
아니요, 이건 그냥 시도하고 오류 양식을 직접 – user3089175