Wondering if you could help me again haha
Wondering if you could help me again haha.
I need to implement
one additional game feature. I would like to put a Pause “P” action in there and I think the code that I have is right (below). The code below that is what I will be putting it into. I think it would go after the case ‘q’ but i am not sure. I also would like to put a begin with a “b” where I paused. Can you show me if I am correct?
I know I also need to change some code in the header but not sure where
Thanks again!
case ‘p’:
cout<<“The game is PausednPress ‘b’ to begin the game.n”;
char ch;
do
{
ch =_getch();
}while(ch!=’b’);
system(“cls”);
HEADER OF CODE