最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

成功解决:‘scanf‘: This function or variable may be unsafe. Consider using scanf_s instead

运维笔记admin5浏览0评论

运行C程序时报错:

错误 C4996 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

原代码:

scanf(" %c", &c);


scanf换成scanf_s后调试程序

scanf_s(" %c", &</

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论