如何在DOSBOX中编译使用graphics.h的代码? [英] How can I compile code that uses graphics.h in DOSBOX?

查看:254
本文介绍了如何在DOSBOX中编译使用graphics.h的代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写一个代码,在这个代码我使用graphics.h,在borland c + +或视觉我不能打开和运行它,现在我想运行这个代码,我有DOSBOX 0.72,这个代码用DOSBOX打开?
my windows is 7 32bit

i write a code and in this code i use graphics.h ,in borland c++ or visual I can't open and run it, now i want run this code ,and i have DOSBOX 0.72 , how open this code with DOSBOX? my windows is 7 32bit

推荐答案

我看到你仍在尝试编写和编译使用旧版和不支持的库的代码...

I see you're still trying to write and compile code that uses legacy and unsupported libraries...

你现在已经发现,你不能在Windows 7本机,并已安装了一个DOS模拟器。现在,您需要找到并下载将在该环境中运行的编译器。

At least you've discovered now that you aren't going to be able to do this natively in Windows 7, and have installed a DOS emulator. Now, you'll need to find and download a compiler that will run in that environment.

由于 graphics.h 是一个专有的Borland库,我建议你使用他们的编译器之一。现在拥有Borland的公司拥有可免费下载的老式产品的在线博物馆获取 Turbo C 2.01 Turbo C ++ 1.01 ,将其加载到您的DOSBOX上,并惊叹您发掘的一小部分计算机历史。

Since graphics.h is a proprietary Borland library, I recommend you use one of their compilers. The company who now owns Borland hosts an online museum of their vintage products that are free for download. Grab a copy of Turbo C 2.01 or Turbo C++ 1.01, load it on your DOSBOX, and marvel at the little piece of computer history you've unearthed.

此外,Turbo C 3.0也可从这里,但我不确定这是否已公布的公共领域。

Also, Turbo C 3.0 is available online from here, but I'm not sure this has been released to the public domain. I can't imagine anyone would really care, but legally and all, you're on your own.

但是,为什么不下载 Visual Studio C ++ 2010 Express 从微软免费使用现代编译器?当然,你不能使用 graphics.h ,但在过去25多年来,在计算机图形技术方面有了大量的发展。现代的IDE将比旧的Borland编译器更容易使用,而你投资的时间实际上是值得的。

But seriously, why not download Visual Studio C++ 2010 Express free from Microsoft and use a modern compiler instead? Sure you can't use graphics.h, but there have been a significant amount of developments made in computer graphics technology in the past 25+ years. A modern IDE will be much easier to use than the old Borland compilers, and the time you invest will actually be worth something.

这篇关于如何在DOSBOX中编译使用graphics.h的代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆