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.

解决方法: include前面添加:#define _CRT_SECURE_NO_WARNINGS(首行添加即可解决)

猜你喜欢

转载自blog.csdn.net/qq_31460605/article/details/121670342