标题:求助贴,关于用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



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-341313-1-1.html




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

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