Thank you very much for your confirmation.
This is part of a somewhat larger program.
The ch = cin.get(); only gets called when
the user initiates input.
User Profile
Collapse
-
Loop while ENTER is held down exit when released
I am trying to write a program that goes through a loop while the user holds down the [ENTER] key and EXIT the loop when the key is no longer depressed.
I got the first part, the loop cycles while the key is depressed but the program just stops when the user no longer holds down the [ENTER] key.
I’m not even sure it’s possible. Thank you!
Code:double a = 0; double b = 3.5; double c = 0; char ch; ;
No activity results to display
Show More
Leave a comment: