b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

vc c语言 C语言: 从 CodeBlocks 到 Microsoft(3)

电脑杂谈  发布时间:2018-02-10 19:33:06  来源:网络整理

scanf() 错误 996 '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.

关于此错误点击错误代码可以打开网页查看详情及解决方案:

编译器遇到弃用声明。The compiler encountered a deprecated declaration. 此警告始终是故意消息从库或附带的头文件,不应在不了解后果的情况下使用不推荐使用的符号的作者。This warning is always a deliberate message from the author of the library or included header file that you should not use the deprecated symbol without understanding the consequences. 由弃用修饰符或在声明的站点的属性指定实际的警告消息。The actual warning message is specified by the deprecation modifier or attribute at the site of the declaration.

这些是生成的 C 运行库和标准库,但不是一个详尽的列表的一些常见 996 消息。These are some common 996 messages generated by the C Runtime Library and the Standard Library, but not an exhaustive list. 访问下列链接或阅读以获取的方法可以解决此问题,或者若要关闭该警告。Follow the links or read on for ways to fix the issue or to turn the warning off.

当编译器遇到函数或被标记为的变量,则会发生 996弃用使用__declspec(deprecated)修饰符,或当你尝试访问函数、 类成员或具有 C + + 14 的 typedef [[弃用]] 属性。996 occurs when the compiler encounters a function or variable that is marked as deprecated by using a __declspec(deprecated) modifier, or when you attempt to access a function, class member or typedef that has the C++14 [[deprecated]] attribute. 你可以使用__declspec(deprecated)修饰符或[[deprecated]]属性自己库或标头文件来警告你有关已弃用的函数、 变量、 成员或 typedef 的客户端中。You can use the __declspec(deprecated) modifier or [[deprecated]] attribute yourself in your libraries or header files to warn your clients about deprecated functions, variables, members, or typedefs.


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-70587-3.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...