以class Vector 为例
Vector::Vector(const Vector& a)
{
this->setlenth(a.length);
for(int i=0;i<a.length;i++)
this->p[i]=a.p[i];
}
以class Vector 为例
Vector::Vector(const Vector& a)
{
this->setlenth(a.length);
for(int i=0;i<a.length;i++)
this->p[i]=a.p[i];
}
转载于:https://www.cnblogs.com/jarmine/p/6909007.html