'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.
VS认为 scanf(); 不安全。
解决方法1:
scanf_s(); //用scanf_s();替换
解决方法2:添加预编译
#define _CRT_SECURE_NO_WARNINGS
解决方法3:
#param warning(disable:4996)