| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 711 人关注过本帖
标题:求助贴,关于用VC画图的
取消只看楼主 加入收藏
destinymai
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2011-5-29
结帖率:0
收藏
已结贴  问题点数:20 回复次数:2 
求助贴,关于用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
destinymai
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2011-5-29
收藏
得分:0 
嗯,好的,我试试
2011-05-30 11:39
destinymai
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2011-5-29
收藏
得分:0 
我想说,其实是我把屏幕初始化图形模式的时候出错了,解决了
2011-06-06 11:30
快速回复:求助贴,关于用VC画图的
数据加载中...
 
   



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

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