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

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

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

若要解决此问题,我们通常建议你更改代码以改为使用建议的函数名称。vc c语言To fix this issue, we usually recommend you change your code to use the suggested function names instead. 但是,更新的名称是特定于 Microsoft 的。However, the updated names are Microsoft-specific. 如果你需要使用现有的函数名称,出于可移植性原因,你可以关闭这些警告。If you need to use the existing function names for portability reasons, you can turn these warnings off. 在其原始名称下库仍然提供了 POSIX 函数。The POSIX functions are still available in the library under their original names.

若要关闭这些函数的弃用警告,请定义预处理器宏 _CRT_NONSTDC_否_警告。To turn off deprecation warnings for these functions, define the preprocessor macro _CRT_NONSTDC_NO_WARNINGS. 你可以通过包括选项定义此宏在命令行/D_CRT_NONSTDC_NO_WARNINGS。You can define this macro at the command line by including the option /D_CRT_NONSTDC_NO_WARNINGS.

此函数或变量可能不安全。请考虑使用 safe_version 相反。若要禁用弃用,请使用_CRT_SECURE_否_警告。请参阅联机帮助了解详细信息。This function or variable may be unsafe. Consider using safe_version instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

Microsoft 已弃用某些 CRT 和 c + + 标准库函数和全局函数,为支持更多安全版本。Microsoft has deprecated some CRT and C++ Standard Library functions and globals in favor of more secure versions. 在大多数情况下,已弃用的函数允许未选中的读取或写入访问权限会导致严重的安全问题的缓冲区。In most cases, the deprecated functions allow unchecked read or write access to buffers, which can lead to serious security issues. 编译器会发出对这些函数的弃用警告,并建议首选函数。The compiler issues a deprecation warning for these functions, and suggests the preferred function.

若要解决此问题,我们建议你使用的函数或变量safe_version相反。To fix this issue, we recommend you use the function or variable safe_version instead. 如果已验证不可能缓冲区覆盖或者 overread 出现在代码中,并且你不能更改的代码可移植性原因,你可以关闭该警告。If you have verified that it's not possible for a buffer overwrite or overread to occur in your code, and you cannot change the code for portability reasons, you can turn off the warning.


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

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

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