adc++ said:
Hi all ,
I program under g++ in linux but it seems it doesn't have conio.h and I
want to use getch() and putch()in my program , Can you tell me what I
must do?
Stop using getch() and putch().
If you want similar functionality, check, for example, the curses
(ncurses, etc.) family. Be warned:
1) The functionality of similar-looking or similarly-named functions is
not what you have grown to expect.
2) point (1) arises becauses your <conio.h> functions and those from
<curses.h> or <ncurses.h> are none of them standard. That means they
can do any damn thing your implementer chooses. The C standard is not
controlling.
3) point (2) means that discussions of these are about
implementation-specific details which are properly discussed in a
newsgroup (or mailing list, or technical support) for your
implementation. They do *not* belong in <news:comp.lang.c>.