Visual Studio 2012 “Syntax Error”
问题 I'm getting the following errors when I attempt to compile my project in Visual Studio 2012: 1>------ Build started: Project: ConsoleApplication1, Configuration: Debug Win32 ------ 1> main.c 1>e:\main.c(28): 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. 1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdio.h(290) : see declaration of 'scanf' 1>e