标题:出现Graphics not initialized (use “initgraph”)
只看楼主
wl2001
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2007-4-17
 问题点数:0 回复次数:1 
出现Graphics not initialized (use “initgraph”)
下面的程序在执行过程中出现Graphics not initialized (use “initgraph”)
#include <graphics.h>
      int main()
      {
           int gdriver, gmode;
           gdriver=VGA;
           gmode=VGAHI;
           initgraph(&gdriver, &gmode, "c:\\tc");
           bar3d(100, 100, 300, 250, 50, 1);   
           getch();
           closegraph();
           return 0;
      }
在turboc2中没有出现,查资料说是egavga.bgi文件所在的目录的路径不对,但更改路径还是不行,请各位朋友帮帮忙.谢谢!~~~
搜索更多相关主题的帖子: initgraph initialized Graphics use not 
2008-04-02 16:06
yunsuoyan
Rank: 1
等 级:新手上路
帖 子:31
专家分:0
注 册:2007-10-16
得分:0 
#include <graphics.h>
      int main()
      {
           int gdriver, gmode;
           gdriver=VGA;
           gmode=VGAHI;
           initgraph(&gdriver, &gmode, "C:\\Win-TC\\projects");
           bar3d(100, 100, 300, 250, 50, 1);   
           getch();
           closegraph();
           return 0;
      }
应该是路径问题,我的可以
2008-04-02 16:40



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




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

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