|
-
January 4th, 2006, 11:56 PM
#1
exit if a key is hit, else continue...
I have a problem. I have a program that will run continuously. But I want to have an interupt to stop the program. How do I do it??
I tried use getch but this will cause the program to pause at getch until a key is hit (which is not what I want). I want it to continue running until a key is hit before it stops.
My program consist of a for loop which does the continuous running.
I am using Borland C++ to compile and run my program.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|