- 📚 相关推荐文章
- SpringCloud Alibaba 整合 Dubbo 、Nacos 及No provider available from registry报错解决方案 推荐
- Spring CloudBoot启动报错Consider defining a bean of type ServerCodecConfigurer 推荐
- spring框架报错:java.lang.NoClassDefFoundError: orgspringframeworkaopTargetSource 推荐
- Spring框架中@Resource注解报错解决方案 推荐
- Spring框架(SpringBoot)中redis报错(Could not get a resource from the pool、java.net.SocketTimeoutException) 推荐

解决VS报错——scanf this function or variable may be unsafe. Consider using scanf
在使用VS编译C语言的代码时,出现了这样的错误
scanf this function or variable may be unsafe. Consider using scanf_s instead这样的解决方法是:
1.在第一行输入:
#define _CRT_SECURE_NO_WARNINGS 1
2.或者将scanf换成scanf_s
一般不建议这样做,因为在做OJ时,是无法识别这样的代码的。如果写习惯了,改起来很麻烦的。
如果这篇文章有帮助到你,点个赞再走吧!欢迎各位留下友好的评论,与博主一起沟通学习。
👁️ 阅读量:0
© 版权声明:本文《解决VS报错——scanf this function or variable may be unsafe. Consider using scanf》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686555156a290715.html。