#include <cstdlib>
#include <iostream>
usingnamespace std;
int main()
{
string words[]={cat, dog, mom, dad, grandma, grandpa, everything, elephant} ;
srand((unsigned)time(0)) ;
int pickword=rand()%8+1 ;
switch (pickword)
{
case 1:
int guessnumber ;
cout<<"______" <<endl ;
cout<<"| |" <<endl ;
cout<<"|" <<endl ;
cout<<"|" <<endl ;
cout<<"|" <<endl ;
cout<<"|" <<endl ;
cout<<"|" <<endl ;
cout<<"***" <<endl ;
char letter ;
cout<<"Guess a letter." <<endl ;
cin>> letter ;
Now how would I differentiate if letter =c add c, but if a add a, but if I add c take another guess and it is a how will i make if first guess is a put *a*, but if its after c like than its ca*? PLEASE HELP! THANK YOU!