在Linux上编译C++时遇到了:
conio.h: no such file or directory
参考StackOverflow: Where is the <conio.h> header file on Linux? Why can’t I find <conio.h>? [duplicate]
conio.h is a C header file used with old MS-DOS compilers to create text user interfaces. Compilers that target other operating systems, such as Linux-based, 32-bit Windows and OS/2, provide equivalent functionality through other header files and libraries.
The #include <curses.h> will give you almost all of the functionality provided by conio.h.
“ncurses” needs to be installed in the first place.
If you use the Apt package manager:
sudo apt-get install libncurses5-dev libncursesw5-dev