fopen opens the picture in ppm format

When using fopen to open a picture in ppm format, you need to add a header file

#include<stdio.h>

When the following error occurs,
Insert picture description here
open Properties " Project Properties " C/C++ " Preprocessor Add _CRT_SECURE_NO_WARNINGS
in the preprocessor definition as shown in the figure below. The first parameter of the fopen function is the name of the opened file. The path specified here needs to use double Slash ; the second parameter is the opening method.


Insert picture description here
Insert picture description here

Insert picture description here

Guess you like

Origin blog.csdn.net/Huang_JinXin/article/details/103253743