graphics.h、conio.h 和 dos.h 在 gcc 中不起作用

REG*_*ZEN 3 software-installation

我正在做一个与鼠标编程相关的项目。我有一个问题graphics.hconio.hdos.h在GCC不工作。我试过http://blog.eternal-thinker.com/2010/09/how-to-use-graphicsh-in-ubuntu.html

当我进入

sudo apt-get install build-essential
Run Code Online (Sandbox Code Playgroud)

我有:

Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
build-essential set to manually installed.

The following packages were automatically installed and are no longer required:
calligra-l10n-engb cdparanoia k3b k3b-data k3b-i18n kdevelop-l10n
  kdevelop-php-docs-l10n kdevelop-php-l10n language-pack-kde-en libflac++6
  libk3b6 libkcddb4

Use 'apt-get autoremove' to remove them.

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Run Code Online (Sandbox Code Playgroud)

然后我试过了

sudo apt-get install libsdl-image1.2 libsdl-image1.2-dev guile-1.8 guile-1.8-dev libsdl1.2debian-all libart-2.0-dev libaudiofile-dev libesd0-dev libdirectfb-dev libdirectfb-extra libfreetype6-dev libxext-dev x11proto-xext-dev libfreetype6 libaa1 libaa1-dev libslang2-dev libasound2 libasound2-dev
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done

Package libsdl1.2debian-all is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or is only available from another source

However the following packages replace it:

  libsdl1.2debian

E: Package 'libsdl1.2debian-all' has no installation candidate
Run Code Online (Sandbox Code Playgroud)

请帮助我使用graphics.h,conio.hdos.hgcc。

Min*_*mus 6

据我所知,graphics.h 是 Ms DOS OS 中用于图形的旧的过时 Borland C++ 头文件。我认为最后一个 Borland C++Builder 不再支持 graphics.h。但是 graphics.h 已经为 Windows 模拟了。使用 graphics.h 制作的可执行文件通常不适用于较新的 PC(以及装有 Windows 操作系统的笔记本电脑)。

(虽然 graphics.h 有简单易用的图形功能,但不再推荐/支持使用)

此外,开源 C++ 编译器通常不支持 conio.h。

conio.h 在 Borland 编译器中具有大部分功能。MS VC++ 也支持它,但功能较少。gcc 等不支持 conio.h。