| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 711 人关注过本帖
标题:求助贴,关于用VC画图的
只看楼主 加入收藏
destinymai
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2011-5-29
结帖率:0
收藏
已结贴  问题点数:20 回复次数:8 
求助贴,关于用VC画图的
小弟用VC画图,easyx库已经安装成功了,为什么还出现:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(97) : error C2143: syntax error : missing ')' before '='
d:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(97) : error C2072: 'initgraph' : initialization of a function
d:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(97) : error C2059: syntax error : ')'
d:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(98) : warning C4028: formal parameter 1 different from declaration
d:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(98) : warning C4028: formal parameter 2 different from declaration
d:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(98) : warning C4028: formal parameter 3 different from declaration
d:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(109) : error C2143: syntax error : missing ')' before '='
d:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(109) : error C2072: 'getlinestyle' : initialization of a function
d:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(109) : error C2059: syntax error : 'type'
d:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(110) : error C2143: syntax error : missing ')' before '='
d:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(110) : error C2072: 'setlinestyle' : initialization of a function
d:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(110) : error C2059: syntax error : 'type'
d:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(110) : error C2059: syntax error : ')'
d:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(111) : error C2143: syntax error : missing ')' before '='
d:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(111) : error C2072: 'getfillstyle' : initialization of a function
d:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(111) : error C2059: syntax error : 'type'
d:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(112) : error C2143: syntax error : missing ')' before '='
d:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(112) : error C2072: 'setfillstyle' : initialization of a function
d:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(112) : error C2059: syntax error : 'type'
这些错误呢??语句是:
#include<stdio.h>
#include<graphics.h>
#include<conio.h>
void main()
{
    int driver,mode;
    driver=DETECT;
    mode=0;
    initgraph(&driver,&mode,"");
    setcolor(15);
    line(66,66,88,88);
    lineto(100,100);
    linerel(36,64);
    restorecrtmode();

}
搜索更多相关主题的帖子: microsoft 
2011-05-29 10:19
laoyang103
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
来 自:内蒙古包头
等 级:贵宾
威 望:19
帖 子:3082
专家分:11056
注 册:2010-5-22
收藏
得分:4 
环境变量错了吧 建议你从新安装一下 那些环境变量不要去动

                                         
===========深入<----------------->浅出============
2011-05-29 11:28
destinymai
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2011-5-29
收藏
得分:0 
嗯,好的,我试试
2011-05-30 11:39
liangjinchao
Rank: 7Rank: 7Rank: 7
等 级:黑侠
帖 子:376
专家分:697
注 册:2010-11-8
收藏
得分:4 
我试了下,C文件好像不能编译,换成C++就可以了!(VS2008)

因为有了因为,所以有了所以,既然已成既然,何必再说何必
2011-05-30 12:32
Moonod
Rank: 2
来 自:河北-唐山
等 级:论坛游民
帖 子:29
专家分:42
注 册:2011-5-30
收藏
得分:4 
两个问题,首先是你的vc出问题了,点工具-选择-目录,把里面东西的存储目录和你安装vc的地方一致就可以了。
          还有一个问题就是和楼上的一样,是c于c++的问题
2011-05-30 15:33
hjywyj
Rank: 11Rank: 11Rank: 11Rank: 11
等 级:小飞侠
威 望:3
帖 子:1114
专家分:2611
注 册:2010-4-14
收藏
得分:4 
#include<graphics.h>
是VC的?应该是tc才有吧?
2011-05-30 15:40
destinymai
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2011-5-29
收藏
得分:0 
我想说,其实是我把屏幕初始化图形模式的时候出错了,解决了
2011-06-06 11:30
张义宇
Rank: 2
等 级:论坛游民
帖 子:40
专家分:37
注 册:2011-5-19
收藏
得分:0 
我们没学啊  难呢  加油
2011-06-06 12:06
快速回复:求助贴,关于用VC画图的
数据加载中...
 
   



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

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