can't delete dynamic array from class

后端 未结 0 1606
醉梦人生
醉梦人生 2020-11-28 04:09
Vector& Vector::operator=(const Vector& other)
{
    int i = 0;

    delete[] this->_elements; // this line is bad !

    // copying all the fields:
    t         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题