-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?

4

1 回答 1

0

Borland 包含getch()在他们的 CRT 库中以向后兼容 MS-DOS。

它只是 Win32 API 的包装器。Borland 通常将 CRT 源代码与他们的编译器一起提供,因此您可以在那里看到它是如何实现的。

于 2012-05-05T09:43:04.300 回答