赞
踩
error C4996: '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.
提示已经很明确了,只要添加 _CRT_SECURE_NO_WARNINGS就可以了,方法如下
或者
error C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
方法和上述相同,都需要在头文件前定义宏定义
_CRT_NONSTDC_NO_DEPRECATE和**_CRT_SECURE_NO_WARNINGS**是等效的,最好都加上,在处理上述错误的时候就要用到了 _CRT_NONSTDC_NO_DEPRECATE
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。