这个问题是vs准备弃用strcpy带来的,因为觉得他不太安全 可以尝试在main函数前面加上#pragma warning(disable:4996)即可解决这个问题 转载于:https://www.cnblogs.com/-wang-cheng/p/4854501.html