解决This function or variable may be unsafe
听语音
- |
- 浏览:13448
- |
- 更新:2014-12-25 11:12
1>------ Build started: Project: Windows 编程, Configuration: Debug Win32 ------
1> Source.cpp
1>d:\personal\documents\visual studio 2013\projects\windows 编程\windows 编程\source.cpp(42): error C4996: 'strtok': This function or variable may be unsafe. Consider using strtok_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> d:\program files (x86)\microsoft visual studio 12.0\vc\include\string.h(204) : see declaration of 'strtok'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
在编译代码时出现如上错误信息,下面就介绍下如何解决This function or variable may be unsafe的问题。