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

posted @ 2020-11-13 10:16  PamShao  阅读(2600)  评论(0编辑  收藏  举报