scanf 报错在Visual Studio 2022中运行报错,无法编译运行:‘scanf’: This function or variable may be unsafe.
问题描述
'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.