BGI的错误,如何解决? [英] BGI error, How to Resolve it?

查看:204
本文介绍了BGI的错误,如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要运行打圈的C程序。该方案是没有错误编译并运行。从用户获得类似半径值后,我得到的错误是这样的:

I want to run a C program that draws a circle. The program is compiling with no error and it is running. After getting the values like radius from the user, I get the error like this :

BGI错误:图形未初始化(用initgraph)

虽然在我的源代码code我已经加入这一行:

Even though in my source code I have added this line :

int gmode,gdrive=DETECT;
initgraph(&gdrive,&gmode,"c\\tc\\bgi");

不过我得到错误。

Still I'm getting error.

我使用Windows,我想不出哪里出了问题。谁能帮我在这方面?

I'm using Windows and I couldn't figure out where I went wrong. Can anyone help me in this regard?

先谢谢了。

推荐答案

您在initgraph路径是错误使用C:\\\\ \\\\ TC BGI

Your path in initgraph is wrong use "c:\\tc\\bgi"

这篇关于BGI的错误,如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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