#include<iostream>usingnamespace std;voidmenu(void);intmain(){char ch;menu();
A: cin.get(ch).get();switch(ch){case'c':cout<<"Tigger is a carnivore."<<endl;break;case'p':cout<<"Di is a pianist."<<endl;break;case't':cout<<"A maple is a tree."<<endl;break;case'g':cout<<"He likes play games."<<endl;break;default:cout<<"Please enter a c,p,t,or g:";goto A;}return0;}voidmenu(void){
cout<<"Please enter one of the following choices:"<<endl;
cout<<"c) carnivore p) pianist"<<endl
<<"t) tree g) game"<<endl;}```