Visual Studio 使用scanf报错
Severity Code Description Project File Line Suppression State
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. AICourseWork G:\Visual Studio C\AICourseWork\main.c 11
Solution:
在文件头添加
#pragma warning(disable:4996)
解决!!!