where the heck is the "any key"

G

Gernot Frisch

Hi,

how can I make a program (console) wait for 'any key' to be pressed?
For now I used getchar(), which waits for enter-key...
 
M

Major_Small

Gernot said:
Hi,

how can I make a program (console) wait for 'any key' to be pressed?
For now I used getchar(), which waits for enter-key...

If your compiler has it, try using getch(), which can be found in
<conio.h>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top