在代码开头加上一行代码
#pragma warning(suppress:4996)
还是不行
#pragma warning(disable:4996)
好久没用VS了,就是这类玩意烦人,再试试行不行
我现在都用mingw+vs code
打开了!感谢大佬