g++ conio.h: no such file or directory

后端 未结 3 1168
执笔经年
执笔经年 2021-01-11 16:38

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 Borlan

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-11 17:05

    There's no direct equivalent for g++. conio.h is specific to some DOS compilers. But you can get what you want using ncurses library, its functions are similar to ones in conio.h.

    Here's a link to a very elaborate tutorial: http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/

提交回复
热议问题