conio.h C++
PasAdam

Why #include <conio.h> is not working? And how can I make it work?

You are viewing a single comment. View All
Giothecoder

That is not a portable header. In fact it is not part of the standard. Try to avoid conio.h.

PasAdam

@Giothecoder ok, but i need it to use getch();

Giothecoder

@PasAdam hm.. not necessarily. There was someone a while back who actually did manage unbuffered input in c++, if you give me a bit I can probably find it. It was called dungeon crawl or something like that?

Giothecoder

@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();

PasAdam

thank you @Giothecoder, I will try to do something with it

Giothecoder
PasAdam
Giothecoder

@PasAdam awesome :)

AkshayaS4

@Giothecoder
this is the first time i am using replit so can u tell where i can find input.hpp or how i can go to that