Store single characters in char and use them in a switch.
In this video:
switchworks withintand also withcharcharholds exactly one character, written in single quotes:'y'std::cin >> answer;reads one character into achar'y'and'Y'are different characters- Accepting both with two cases that share code:
case 'Y': case 'y':