I\'m trying to hold the screen on my output using the header file
, but I don\'t know any equivalent function to the getch()
&
The platform-specific function getch()
from conio.h has two special features:
The echoing is done by the terminal outside of the C/C++ environment. It can only be controlled by manipulating the terminal. Also, it is nearly impossible to get unbuffered I/O with the iostream.h header.
Therefore it is not possible to get anywhere near getch()
using iostream.h alone.
(There are plenty of getch()
implementations around, e.g. using termios.h to disable echoing.)