i need a command in c++ to scan the first keystroke the user enters ....(i.e) user doesnt have to press <enter> key...i need to scan as soon as he types....please help...thanks in advance....

It also depends on the compiler, too. Most compilers can't do it.

In your case, I would guess it's VC++ something, so getch() would work.

Edited 5 Years Ago by WaltP: n/a

It also depends on the compiler, too. Most compilers can't do it.

In your case, I would guess it's VC++ something, so getch() would work.

hey thnx a lot...getch() worked....:)...

This question has already been answered. Start a new discussion instead.