- 📚 相关推荐文章
- sscanf: This function or variable may be unsafe.Consider using scanf 推荐
- warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you me 推荐
- function()默认参数中ReferenceError Cannot access ‘a‘ before initialization的解决方法 推荐
- CSS 函数 Function 推荐
- 分析Not enough variable values available to expand ‘xxx‘ 推荐

C4996 ‘strcat‘: This function or variable may be unsafe. Consider using strcat
C语言VS中strcat报错
C4996 ‘strcat’: This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
原因 vs编译器认为C语言提供的strcat函数是不安全的 解决方法- 1 在程序的第一行加上#pragma warning(disable:4996)
- 2 vs提供了一个更安全的函数strcat_s,使用strcat_s代替strcat。但strcat_s的兼容性不好,其他编译器可能无法识别
👁️ 阅读量:0
© 版权声明:本文《C4996 ‘strcat‘: This function or variable may be unsafe. Consider using strcat》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686557306a291402.html。