急!急求帮助!=操作符重载
template <class T>
SeqList<T>& SeqList<T>::operator=(SeqList<T>& L)
{
if(this == &L) return *this;
T value;
int n = L.Length();
T* ptr = &L; //error C2440: 'initializing' : cannot convert from 'class SeqList<int> *' to 'int *'
while(n--)
*this++ = *srcptr++; // error C2105: '++' needs l-value
return *this;
}
//error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'int' (or there is no acceptable conversion)这个错误出在*this++ = *srcptr++; 请问上述三个错误如何处理,谢谢