Home > Q&A > body text
写的程序如下:Person::Person() { std::string *name=new std::string [255]; } Person::~Person() { delete [] name; } 错误如下图:
Person::Person() { std::string *name=new std::string [255]; } Person::~Person() { delete [] name; }
PHPz2017-04-17 11:49:41
nameDeclared in the constructor
name