不能正常运行,求解答

#include
#include<assert.h>
using namespace std;
class Book
{
private:
char * name;
double price;
public:
Book(char*n, double p)
{
int length = strlen(n);
name = new char[length + 1];
strcpy_s(name, length + 1, n);
price = p;
cout << "调用构造函数" << name << endl;
}
Book(Book &b)
{
int length = strlen(b.name);
name = new char[length + 1];
if (name != NULL)
strcpy_s(name, length + 1, b.name);
price = b.price;
cout << "调用复制构造函数:" << name << endl;
}
~Book()
{
if (name != NULL)
{
cout << "调用析构函数" << name << endl;
delete[]name;
name = NULL;
}
}
};
int main()
{
Book a("C", 34);
Book b(a);
return 0;
}
错误:

1>c:\users\发\source\repos\project9\project9\源1.cpp(39): error C2664: “Book::Book(Book &)”: 无法将参数 1 从“const char [2]”转换为“char *”
1>c:\users\发\source\repos\project9\project9\源1.cpp(39): note: 从字符串文本转换将丢失 const 限定符(请参阅 /Zc:strictStrings)
1>已完成生成项目“Project9.vcxproj”的操作 - 失败。
在VS2017中,运行不了
目标:

img


#include <cstring>
#include <cassert>
#include <iostream>
using namespace std;
class Book
{
private:
    char * name;
    double price;
public:
    Book(char* n, double p)
    {
        int length = strlen(n);
        name = new char[length + 1];
        strcpy_s(name, length + 1, n);
        price = p;
        cout << "调用构造函数" << name << endl;
    }
    Book(Book &b)
    {
        int length = strlen(b.name);
        name = new char[length + 1];
        if (name != NULL)
            strcpy_s(name, length + 1, b.name);
        price = b.price;
        cout << "调用复制构造函数:" << name << endl;
    }
    ~Book()
    {
        if (name != NULL)
        {
            cout << "调用析构函数" << name << endl;
            delete[]name;
            name = NULL;
        }
    }
};
int main()
{
    char c[] = "C";
    Book a(c, 34);

    //或者
    char* p = c;
    Book a(c, 34);

    Book b(a);
    return 0;
}