出现错误:
错误 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.
解决方法:
点击:项目->属性->C/C++ 预处理器 ->预处理器定义->编辑
添加一条 _CRT_SECURE_NO_DEPRECATE
即可消除error!