BGI in computer graphics

六眼飞鱼酱① 提交于 2019-12-12 04:29:17

问题


bgi error graphics not initialised ('use initgraph')

This is the error I'm getting. Even after changing the BGI path and other solutions mentioned, I'm unable to overcome!


回答1:


The problem isn't that you are looking in the wrong directory, the problem is that the Borland Graphics Interface requires that you call initgraph() before you try to actually draw things. You would expect this to look something like this:

initgraph(&gd , &gm ,"C:\\TurboC\\BGI");

The suggestion in the comments, i.e., use a more modern graphics package, is also excellent advice.



来源:https://stackoverflow.com/questions/37322352/bgi-in-computer-graphics

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!