-1

I am using C++ under Eclipse. With the Borland compiler I have used getch() function to take user input without showing what was entered.

The getch() function is not working under Eclipse.

Is there another way to get the user input without displaying on the screen the symbols which he enters?

PeeHaa
  • 71,436
  • 58
  • 190
  • 262
gotqn
  • 42,737
  • 46
  • 157
  • 243
  • 1
    Numerous duplicates, e.g. [What is equivalent to getch() & getche() in Linux?](http://stackoverflow.com/questions/7469139/what-is-equivalent-to-getch-getche-in-linux), [Problem with kbhit() and getch() for Linux](http://stackoverflow.com/questions/1513734/problem-with-kbhitand-getch-for-linux) and [Alternative function in iostream.h for getch() of conio.h?](http://stackoverflow.com/questions/1377403/alternative-function-in-iostream-h-for-getch-of-conio-h). – Paul R May 05 '12 at 10:23
  • Eclipse is not a compiler, it's an IDE. You should specify with what compiler/platform you're working. – Matteo Italia May 05 '12 at 13:09

1 Answers1

0

Borland included getch() in their CRT libraries for backward compatibility with MS-DOS.

It's just a wrapper around the Win32 API. Borland usually ships the CRT source code with their compilers, so you can see how it is implemented there.

gotqn
  • 42,737
  • 46
  • 157
  • 243
Pat
  • 1,726
  • 11
  • 18