如何在code :: blocks中使用graphics.h编译和运行程序? [英] How can I compile and run programs using graphics.h in code::blocks?

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

问题描述

我是code :: blocks的新手,所以我想知道如何在代码中编译和运行我的计算机图形动画程序(那些使用 graphics.h )的程序::块。



这是否可以使用默认安装?任何形式的帮助将不胜感激。

code> graphics.h 没有时间机器,所以你最好完全忘记它。这个问题每周会被询问一次,共识总是相同的。



graphics.h 标题是20世纪80年代早期Borland编译器附带的专有图形库。它不是一个标准的C或C ++库,并且在至少20年以前不是现代或相关的。毫无疑问,它不适用于现代编译器或现代操作系统。使用或学习使用它是对时间的完全浪费。如果您的教育系统坚持要求您这样做,您应该有权全额退还您的学费。

这很好,您可以使用Code :: Blocks等现代IDE。你也应该升级你的库和工具包。如果你想编写图形应用程序,那么你肯定会在像Windows或X这样的图形环境中这样做。你也可以在那里学习如何去做,而不是让行出现在MS-DOS模拟器中,惊叹于复古科技的吸引力。

I am new to code::blocks, so I was wondering how could I compile and run my computer graphics animation programs (those that use graphics.h) in Code::Blocks.

Is this possible with the default installation? Any kind of help would be appreciated.

解决方案

This is impossible. You can't use graphics.h without a time machine, so you're better off forgetting about it altogether. This question gets asked about once a week, and the consensus is always the same.

The graphics.h header is a proprietary graphics library included with Borland compilers back in the early 1980s. It is not a standard C or C++ library, and hasn't been modern or relevant for at least 20 years. It should come as no surprise that it does not work with modern compilers, or on modern operating systems. Using or learning to use it is an utter and complete waste of time. If your educational system is insisting upon you doing so, you should be entitled to a complete refund of your tuition.

It's good that you're moving up to a modern IDE like Code::Blocks. You should also upgrade your library and toolkits while you're at it. If you want to write graphics applications, you're undoubtedly going to be doing so in a graphical environment like Windows or X. You might as well learn the way to do it there, rather than getting lines to appear in an MS-DOS emulator and marveling at the appeal of retro tech.

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

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