我想运行一个绘制圆圈的C程序.该程序正在编译,没有错误,它正在运行.从用户获取像radius这样的值后,我得到如下错误:
BGI error: Graphics not initialized ( use "initgraph")
即使在我的源代码中我添加了这一行:
int gmode,gdrive=DETECT;
initgraph(&gdrive,&gmode,"c\\tc\\bgi");
Run Code Online (Sandbox Code Playgroud)
我仍然得到错误.
我正在使用Windows,我无法弄清楚我哪里出错了.谁可以在这方面帮助我?
提前致谢.