User Profile

Collapse

Profile Sidebar

Collapse
Tom Tobias
Tom Tobias
Last Activity: Sep 16 '11, 06:23 PM
Joined: Sep 15 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 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.
    See more | Go to post

    Leave a comment:


  • Tom Tobias
    started a topic Loop while ENTER is held down exit when released
    in C

    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; ;
    ...
    See more | Go to post
    Last edited by Banfa; Sep 16 '11, 12:01 AM. Reason: Added code tags
No activity results to display
Show More
Working...