fopen在VS中不安全的问题

问题

fopen函数哎VS中使用,报错:

error C4996: ‘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.

解决办法

 添加:_CRT_SECURE_NO_WARNINGS

原文地址:https://www.cnblogs.com/pam-sh/p/13967857.html