day{sun,mon,tue,wed}
day
123456789101112131415161718192021222324252627
enum day {sun,mon,tue,wed}; std::string dayString; day d; std::cin >> dayString; if (dayString == "sunday") { d = sun; } else if (dayString == "monday") { d = mon; } else if (dayString == "tuesday") { d = tue; } else if (dayString == "wednsday") { d = wed; } else { // Invalid date !!! What to do? }