如图所示,C++编程使用库函数stcpy报错,使用C编程也一样,使用scanf函数也会报错,小白求解决。
1.你拼写错了,应该是strcpy,你漏了r2.需要包含string头文件
//C++ #include <string> //C #include <string.h>