简体   繁体   中英

BGI in computer graphics

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!

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, ie, use a more modern graphics package, is also excellent advice.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM