问题
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