下面这段代码显示:错误LNK2019 无法解析的外部符号 strcyp,该符号在函数 main 中被引用。是为什么


#include<stdio.h>
#include<string.h>
struct Book
{
    char name[20];
    short price;
};

int main()
{
    struct Book b1 = {"c语言程序设计", 55 };
    strcyp(b1.name, "c++");
    printf("%s\n", b1.name);
    return 0;
}

strcpy你打错了 p和y顺序反了,所以会报错,多注意细节就好了