template <class List_entry>
Error_code List<List_entry>::remove(int position,List_entry &x)
{
if(count==0)
return underflow;
if(position<0||position>=count)
return rangeerror;
x=entry[position];
int i;
for(i=position;i<count-1;i++)
entry[position]=entry[position+1];
count--;
}
Error_code List<List_entry>::remove(int position,List_entry &x)
{
if(count==0)
return underflow;
if(position<0||position>=count)
return rangeerror;
x=entry[position];
int i;
for(i=position;i<count-1;i++)
entry[position]=entry[position+1];
count--;
}