Question: I want to add timer to this program like the user has set amount of time to input the value of choice in other words

I want to add timer to this program like the user has set amount of time to input the value of choice in other words if the player don't hit the keys in givien time then the game will quit.. c++ please

I want to add timer to this program like the user has

usleep (10000000); if (option ='p. Il option =='P'){ char myArray[2]121 1'O,0','0','' char choice; while(true) ? Implicit conversion loses integer precision,'time-t' (aka 'long') to 'unsigned int int x, y char temp; for (int 1-0 ; 12 ;i++) { for (int j-0;jchoice; if && myArray[0][0] '*') && myArray[1][1] Il (choice-- '*')) && myArray[0][1] '*') | | (choice myArray[1][0] ((choice *') =- "Q =- "W' = ?? ?' && | | (choice 'S' { = = score += 1; if ((choice 'x') | | (choice && myArray[0][1] 'x') II (choice myArray[1][0] myArray[0][0] )I(choice 'S&& myArray[1][1])) != Q' && = !- "W' = != 'A B& == cout "whoops! you hit the wrong key"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!