BGI ERROR :估计是initgraph(&gdriver, &gmode, "c:\\tc"); 这个路径不对,我每次做的时候,都把BGI下的图形驱动文件复制到我PROJECT目录下,这样我就可以这么用了:initgraph(&gdriver, &gmode, " " ); 很方便
GRAPHICS NOT INTITIALIZED :图形初始化失败,估计你的TC没设置好(图库没打开):方法是:OPTIONS->LINKER->Libraries->graphics library选中它,就可以了
另外你的程序也有问题:我改了一下
#include <graphics.h>
int main()
{
int gdriver, gmode;
detectgraph(&gdriver, &gmode); /*自动测试硬件*/
printf("the graphics driver is %d, mode is %d\n", gdriver,
gmode); /*输出测试结果*/
getch();
initgraph(&gdriver, &gmode, "c:\\tc");
/* 根据测试结果初始化图形*/
bar3d(10, 10, 130, 250, 20, 1);
getch();
closegraph();
return 0;
}