为什么我安装了目前最新版的,会出现这种情况:
(编译器:Visual C++ 6.0)
这是我的代码:
#include<graphics.h>
#include<conio.h>
#include<windows.h>
int main()
{
initgragh(350,600);
IMACE img_bk;
loadimage(&img_bk,"D:\\background.jpg");
putimage(0,0,&img_bk);
getch();
closegraph();
return 0;
}
为什么运行不了?
编译的情况是:
--------------------Configuration: 143 - Win32 Debug--------------------
Compiling...
21.cpp
D:\vc++的文件夹\143\21.cpp(6) : error C2065: 'initgragh' : undeclared identifier
D:\vc++的文件夹\143\21.cpp(7) : error C2065: 'IMACE' : undeclared identifier
D:\vc++的文件夹\143\21.cpp(7) : error C2146: syntax error : missing ';' before identifier 'img_bk'
D:\vc++的文件夹\143\21.cpp(7) : error C2065: 'img_bk' : undeclared identifier
执行 cl.exe 时出错.
143.exe - 1 error(s), 0 warning(s)
我用的是c++ Source File
求!为什么。