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.

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....:)...