构建传统 Turbo C++代码

发布于 2024-09-18 03:05:45 字数 335 浏览 4 评论 0原文

我希望恢复一些旧的 C++ 代码,这些代码是在 Turbo C++ 中为 DOS 开发的。这是一个基于控制台的文字游戏。

这个应用程序大量使用了 conio.h - Turbo C 特定的函数(我认为)gotoxy()、window() 等。

我发现 Turbo C++ 编译器不再提供下载。 Embarcardero/CodeGear/Borland 似乎已将其从其网站上完全删除。

我需要根据旧应用程序拼凑出一个新原型;大多数功能都存在于旧应用程序中,并且需要重写(使用像 ncurses 这样提供类似功能的库)。我计划稍后在演示之后将应用程序移植到现代编译器。

你建议我如何去做这件事?

I am looking to revive some old C++ code, developed in Turbo C++ for DOS. It's a console-based text game.

This app makes heavy use of conio.h - the Turbo C-specific functions (I think) gotoxy(), window() and the like.

I find that Turbo C++ compiler is no longer available for download. Embarcardero/CodeGear/Borland seem to have removed it completely from their sites.

I need to hack together a new prototype based on the legacy app; most of the functionality is present in the old app and would be too much to rewrite (using a library like ncurses which offers similar functionality). I plan to port the application only later, after a demo, to a modern compiler.

How would you suggest I go about this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

风吹雨成花 2024-09-25 03:06:59

有人为开源编译器编写了该文件的副本 MinGW/Dev-C++ 的 Borland 风格 CONIO 实现。,可能值得一看。

Someone has written a copy of that file for an open source compiler Borland-style CONIO implementation for MinGW/Dev-C++., might be worth taking a look at.

海之角 2024-09-25 03:06:48

我能够使用 C++ Builder 试用版构建该应用程序。它不
不过我必须创建一个新的项目文件。
C++ Builder 中仍然支持 conio.h。

I was able to build the app using C++ Builder trial edition. It does not
I had to make a new project file though.
There is still support for conio.h in C++ Builder.

甜尕妞 2024-09-25 03:06:35

您可能需要查找 ncurses 才能获得此功能。

You will probably need to look up ncurses to get this functionality.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文