各位大虾们帮帮忙!!

hhlong hhlong 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

#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)
请帮帮忙!!
...全文
评论 1
收藏 已收藏
分享
返回顶部
hhlong
C语言 70,040 成员 243,237 内容