Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Paused The Execution?

Status
Not open for further replies.

FontanaS

Programmer
May 1, 2001
357
US
I have a program that when run, I want the program to pause so the user can see the results.
I've tried using = Sleep(1) but I keep getting errors that sleep is undefined. But it is a reserved word. I don't know if I need a special Include statement at the top.

Also, if there is a way to pause the results until the user hits a button, that would be preferred.

THANKS!

Sandy
 
If you have declared #include<windows.h> it should work.
 
Have you tried using getchar() function for keyboard input.
try using this command in place of Sleep.

Anand
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top