// Code derived from Stroustrup's PPP2 book// § 4.4.1.3 Switch technicalities// -and beginning on p 106#include<iostream>#include<string>usingstd::cin;usingstd::cout;usingstd::string;// you can switch only on integers, etc.intmain(){cout<<"Do you like fish?\n";strings;cin>>s;switch(s){// error: the value must be of integer, char, or enum typecase"no":// . . .break;case"yes":// . . .break;}}