I’m trying to write a program with g++ that uses conio.h header.
What I’m actually trying to do is calling gotoxy function which I used in Borland compiler and windows OS.
So the first question is: is there a gotoxy function or equivalent in g++?
Second: why can’t I include conio.h? I read some stuff that said I should install libstdc++ package, I tried but it seems that I already have it (it’s accompanied by gcc).
There’s no direct equivalent for g++.
conio.his specific to some DOS compilers. But you can get what you want usingncurseslibrary, its functions are similar to ones inconio.h.Here’s a link to a very elaborate tutorial: http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/