Ok, I have a given template class code the only thing we are to implement is inserting an item so that the template array list is still in ascending order my template passes the parameter of another class, this classes contains overloaded operators < > == based upon the win to total games played ratio the.
Here is the code for the insert template function
template class<elemType>
arrayList<elemtype>::insert(elemtype insertItem)
{
//code
}
They also have included this function
template<class elemType>
int arrayListTypeT<elemType>::seqSearch(elemType item) const
{
int i;
for (i = length - 1; i >= 0; i--)
if (list[i] == item)
{ break; }
return i;
} //end seqSearch
Which I believe could be of use because the insert function is just updating an item in the list