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.”
解决办法1:程序最前面添加#define _CRT_SECURE_NO_DEPRECATE (单个程序能解决不能永久解决)
解决办法2:点击PROJECT然后点击最后一个properties,进入设置页面点击C/C++,在Preprocessor里的右侧下拉菜单里添加_CRT_SECURE_NO_WARNINGS,保存退出即可。