| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 785 人关注过本帖
标题:编译出错!!
取消只看楼主 加入收藏
benzeen
Rank: 2
等 级:新手上路
威 望:3
帖 子:49
专家分:0
注 册:2008-9-20
收藏
 问题点数:0 回复次数:3 
编译出错!!
程序代码:
#include<graphics.h>
#include<stdio.h>
main()
{
     int graphdriver=VGA;
     int graphmode=VGAHI;
     initgraph(&graphdriver,&graphmode,"");
     cleardevice();
     moveto(100,20);
     lineto(100,80);
     moveto(200,20);
     lineto(100,80);
     line(100,90,200,90);
     linerel(0,20);
     moverel(-100,0);
     linerel(30,20);
     getch();
     closegraph();
     return 0;


}

错误信息:
---------- Compiler Link ----------
Invalid keyboard code specified
Turbo C++ Version 3.00 Copyright (c) 1992 Borland International
e:\c\cdemo\test1.c:
Turbo Link  Version 5.0 Copyright (c) 1992 Borland International
Error: Undefined symbol _closegraph in module e:\c\cdemo\test1.c
Error: Undefined symbol _linerel in module e:\c\cdemo\test1.c
Error: Undefined symbol _moverel in module e:\c\cdemo\test1.c
Error: Undefined symbol _line in module e:\c\cdemo\test1.c
Error: Undefined symbol _lineto in module e:\c\cdemo\test1.c
Error: Undefined symbol _moveto in module e:\c\cdemo\test1.c
Error: Undefined symbol _cleardevice in module e:\c\cdemo\test1.c
Error: Undefined symbol _initgraph in module e:\c\cdemo\test1.c

        Available memory 4125248

Output completed (0 sec consumed)
搜索更多相关主题的帖子: 编译 
2008-09-27 20:37
benzeen
Rank: 2
等 级:新手上路
威 望:3
帖 子:49
专家分:0
注 册:2008-9-20
收藏
得分:0 
回复 2# blueboy82006 的帖子
不会吧!!晕!这是用turbo c编译的!!

[url=http://hi.baidu.com/benzeen]My Blog[/url]
2008-09-27 20:56
benzeen
Rank: 2
等 级:新手上路
威 望:3
帖 子:49
专家分:0
注 册:2008-9-20
收藏
得分:0 
回复 4# blueboy82006 的帖子
那如何可以在vc下编写graphics?

[url=http://hi.baidu.com/benzeen]My Blog[/url]
2008-09-27 21:20
benzeen
Rank: 2
等 级:新手上路
威 望:3
帖 子:49
专家分:0
注 册:2008-9-20
收藏
得分:0 
回复 6# snakealpha 的帖子
我用的editplus 编辑器!!在里面配置了一下!!

[url=http://hi.baidu.com/benzeen]My Blog[/url]
2008-09-27 22:30
快速回复:编译出错!!
数据加载中...
 
   



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

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