我写了一个加载图片的部分,用的是VS2022和最新的easyX,loadimage函数里尝试过将图片直接放在主程序同一目录下,也试过新建一个主程序同一目录下的文件夹然后将图片放进去,格式是jpg,路径也没错,但就是没办法加载出来,只会显示出initgraph函数做出的窗口,球球了帮忙解决一下,最近真的急着用
#include<graphics.h>
#include<conio.h>
int main()
{
const int width = 640;
const int height = 480;
IMAGE picture;
initgraph(width, height);
loadimage(&picture, "ldle1", 100, 100);
putimage(0, 0, &picture);
_getch();
closegraph();
return 0;
}