写C语言时遇到 问题 C6031 返回值被忽略:“scanf”。 解决 1、在文件前加 #pragma warning(disable:4996) 将“scanf返回值被忽略"的警告忽略掉 2、将scanf换成scanf_s函数