各位大虾们帮帮忙!!
#include <stdio.h>
#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;
}
为什么会出现下面情况?
Linking Error: Undefined symbol _closegraph in module eg.5
Linking Error: Undefined symbol _bar3d in module eg.5
Linking Error: Undefined symbol _initgraph in module eg.5
Linking Error: Undefined symbol _detectgraph in module eg.5
(我保存在 D:\tc\eg.5)
请帮帮忙!!