Professional Documents
Culture Documents
Enum Week Exercise
Enum Week Exercise
enum weekday
{
sunday=1, monday, tuesday, wednesday,
thursday, friday, saturday
};
void print_day(enum weekday w)
{
}
int main()
{
enum weekday day1, day2;
int n1, n2;
cout << "enter 2 days (in number):\n";
cin >> n1 >> n2;
if(day1==day2)
cout<<"\nThe days are the same\n\n";
else
cout<<"\nThe days are not the same\n\n";
}