VS2019报错:‘fopen‘: This function or variable may be unsafe. Consider using fopen_s instead.

VS2019报错:‘fopen’: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

Solution: Add before include: #define _CRT_SECURE_NO_WARNINGS (adding the first line can solve it)

Guess you like

Origin blog.csdn.net/qq_31460605/article/details/121670342