Store single characters in char and use them in a switch.

In this video:

  • switch works with int and also with char
  • char holds exactly one character, written in single quotes: 'y'
  • std::cin >> answer; reads one character into a char
  • 'y' and 'Y' are different characters
  • Accepting both with two cases that share code: case 'Y': case 'y':