C++ image loading failure problem

I just learned C++ yesterday when I used vc++ to write the file path in loadimg, but it didn’t load in.
I checked that the file location and the source program are in the same directory, and manually changed the file format to jpg format, but it didn’t work.
Later solution: I can’t manually change the picture to jpg format, I should open the picture editor and save it as jpg

Guess you like

Origin blog.csdn.net/jjswift/article/details/100761684