VS2017中调试时:错误 C4996 'scanf': This function or variable may be unsafe. Consider using scanf_s instead

在VS2017的调试中:

错误    C4996 'scanf': This function or variable may be unsafe. Consider using scanf_s instead

解决办法:项目——属性——C/C++——预处理器——预处理器定义——编辑

加入_CRT_SECURE_NO_WARNINGSVS2017中调试时:错误	C4996 'scanf': This function or variable may be unsafe. Consider using scanf_s instead