'scanf' was declared deprecated,
2014-10-03 10:22
393 查看
问:我在用vs2005写c时,遇到这样一个warning:
我在用vs2005写c时,遇到这样一个warning: 'scanf' was declared deprecated,
答:这个warning不会导致错误。很正常的
warning 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. 因为scanf的声明在VS2005中被认为是不安全的,让你使用scanf_S来代替。你可以使用帮助来获取细节。
相关文章推荐
- 'function': was declared deprecated
- warning C4996: '_snprintf' was declared deprecated 警告信息的消除方法
- warning C4996: ''strcpy'' was declared deprecated
- 'setenv' was not declared in this scope
- clCreateCommandQueue': was declared deprecated
- clCreateCommandQueue': was declared deprecated
- VC2005去掉烦人的warning C4996: '×××' was declared deprecated
- 昨天的错误修改后,make出现error: 'UINT64_C' was not declared in this scope
- [Error] 'atoi' was not declared in this scope
- 'A previous installation of Qt5 Visual Studio Add-in was detected'解决方案
- error: 'EOF' was not declared in this scope的解决办法
- c++ error: 'malloc' was not declared in this scope
- v4l2驱动摄像头 出现错误UINT64_C' was not declared in this scope 解决
- error: 'ff_get_buffer' was not declared in this scope
- error C2065: 'FILE' 'fopen' 'fscanf' 'printf' 'fclose' 'scanf' : undeclared identifier
- qt-everywhere-opensource-src-4.8.1 出错:error: 'IPV6_MULTICAST_HOPS' was not declared in this scope
- error: 'memcpy' was not declared in this scope
- ffmpeg: 'UINT64_C' was not declared in this scope
- error: 'glGenFramebuffersOES' was not declared in this scope
- 【Cocos2d-x】编译Android工程时提示error: 'GL_LINE_SMOOTH' was not declared in this scope