救急!!!!下载的easyx刚刚还能运行,现在一样的代码却一直报相同的错

0

c:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(32) : error C2146: syntax error : missing ';' before identifier 'initgraph'
c:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(32) : error C2501: 'HWND' : missing storage-class or type specifiers
c:\program files (x86)\microsoft visual studio\vc98\include\graphics.h(32) : fatal error C1004: unexpected end of file found

ava

2020-1-1

0

代码文件换成 .cpp 扩展名。

ava
慢羊羊

2020-1-1

扩展名是cpp,还是错 -   2020-1-1
你还是重新创建项目试试吧。你给的提示信息太少了。 -  慢羊羊  2020-1-1
重新创建还是一摸一样的错。 是这个“HWND initgraph(int* gdriver, int* gmode, char* path);”中给出了错误 错误分别是这三个: error C2146: syntax error : missing ';' before identifier 'initgraph' error C2501: 'HWND' : missing storage-class or type specifiers fatal error C1004: unexpected end of file found  -   2020-1-1
技术讨论社区