Why #include <conio.h> is not working? And how can I make it work?
That is not a portable header. In fact it is not part of the standard. Try to avoid conio.h.
@PasAdam found something better I think, https://repl.it/talk/share/NON-BLOCKING-UNBUFFERED-CONSOLE-INPUT-in-C/17428
Edit: if you go to input.hpp, literally the first thing there is an implementation of getch();