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