C语言图形求助!
#include<graphics.h>main()
{
int gdriver,gmode;
detectgraph(&gdriver,&gmode);
printf("the graphics driver is %d,mode is %d\n",gdriver,gmode);
getch();
initgraph(&gdriver,&gmode,"");
circle(200,200,50);
closegraph();
}
一运行程序,就显示出:
BGI Error:Graphics not initialized (use 'initgraph')
刚开始是在64位的windows7虚拟(XP)下运行,后来到朋友那里32位xp上也是这样,为什么?