hi, buddy!I am a beginer here. thanks for your answer:
bow to everyone.
I am always confused by the reference and pointer. in the
code below I think it should return the Pointer 'this' but why
it return '*this', i think *this means the contents of the pointer.
who can help me? thanks a lot!
const Array &Array::operator =(const Array &right)
{
if(&right!=this)
{
delete [] ptr;
size = right.size;
ptr=new int[size];
assert(ptr!=0);
for(int i =0; i<size;i++)
ptr&#091;i&#093; = right.ptr&#091;i&#093;;
}
return *this;
}

this function should return a const reference of Array,right?