摘要:
在VS 2012 中编译 C 语言项目,如果使用了 scanf 函数,编译时便会提示如下错误: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.原因是Visual C++ 2012 使用了更加安全的 run-time library routines 。新的Security CRT 阅读全文