int SeqList<ElemType>::InsertElem(const ElemType &e)//insert at the taild
{
if(length==maxLength)
return 0;
else
{
elems[length]=e;
length++;
return 1;
}
}
The purpose of this program is to implement a sequential list,and I want know the difference between return 1 and return 0 and the effect of them. Additionally, why not use void type?