标题:C语言图形程序求助!
取消只看楼主
qqwwqqwwtc
Rank: 1
等 级:新手上路
帖 子:14
专家分:0
注 册:2010-6-6
结帖率:25%
已结贴  问题点数:20 回复次数:1 
C语言图形程序求助!
#include
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上也是这样,为什么?
搜索更多相关主题的帖子: 运行程序 C语言 windows7 
2011-09-06 09:21
qqwwqqwwtc
Rank: 1
等 级:新手上路
帖 子:14
专家分:0
注 册:2010-6-6
得分:0 
对不起,原程序是这样的:
#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上也是这样,为什么?
2011-09-06 10:56



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-349256-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.012883 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved