为什么不能运行,是什么错误?

img

提示很明显了,strcoy不安全,让你使用 _RCT_SERCURE_NO_WARNINGS 宏,使得该程序不进行安全检查。

img

参考: https://blog.csdn.net/weixin_43919932/article/details/90384151

头文件

#include <iostream>
#include <cstring>