+ 3
What alternative is there for getch(), kbhit(), getche().
i know conio.h is outdated but in case i need to use such functions what alternative functions are there in other header files. And yes "getchar" i don't think is a suitable match since it echo and wait for the entered key to be pressed. plz suggest.
2 odpowiedzi
+ 2
You can use a standard replacement for getch() function to read the keyboard hit.
std::cin.get();
is the alternative, though it shows the pressed key on the screen.