BGI in computer graphics

2019-08-15 19:20发布

问题:

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.



标签: c bgi