解決方法1: 在程序的最前面加上 #pragma warning(disable:4996) 解決方法2: 程序屬性 -> C++ -> General -> SDL checks -> No(/sdl-)