+ 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.

8th Apr 2017, 5:33 AM
GeekyShacklebolt
GeekyShacklebolt - avatar
2 Respostas
+ 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.
27th Aug 2018, 1:07 PM
S.Ahmad Abtahi
S.Ahmad Abtahi - avatar
8th Jul 2019, 4:31 AM
Shahil Ahmed
Shahil Ahmed - avatar