求助贴,关于用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();
}