图片找不到有点奇怪

-2

错误 C4996 'getch': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _getch. See online help for details. ConsoleApplication5 D:\ConsoleApplication5\ConsoleApplication5\ConsoleApplication5.cpp 11 

#include<graphics.h>
#include<conio.h>
void main()
{
	initgraph(293, 220);
	IMAGE img_bk;
	loadimage(&img_bk, _T("D:\\background.jpg"));
	putimage(0, 0, &img_bk);
	getch();
	closegraph();
ava
净,何

2021-1-27

1

getch();  改成  _getch();

ava
#$@#$#$

2021-1-27

0

请仔细阅读错误提示。存在错误,导致程序并没有正确编译执行。

ava
慢羊羊

2021-1-27

热门标签