不存在char[11]转换到data的适当构造函数为什末啊
class data{
private:
string name;
string id;
string brithday;
public:
data(string a,string b,string c){
this->name=a;
this->id=b;
this->brithday=c;
}
data(const data&p){
name=p.name;
id=p.id;
brithday=p.brithday;
};
data & operator=(const data &p);
string getname(){return name;}
string getid(){
return id;
}
string getbrithday(){return brithday;}
void show();
data(){};
};
int main()
{
data m=('Rose' , "32233" , "1998/10/10");
}