错误 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全部替换成 scanf _s
方法二
在VS2017中, 打开工程属性,添加一行内容_CRT_SECURE_NO_DEPRECATE