BGI in computer graphics

2019-08-15 18:29发布

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!

标签: c bgi
1条回答
▲ chillily
2楼-- · 2019-08-15 19:11

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.

查看更多
登录 后发表回答