This may help.
Code:template <class elemType> int arrayListType<elemType>::seqSearch(const elemType& item) { static int loc =0; loc++; //Assuming here that length and list are members if (length == 0 || loc == length) { return -1; } else if (list[loc] == item) { return loc; } else { return seqSearch(item); //THIS IS MY PROBLEM STATEMENT - MENTAL BLOCK!!! } } //end seqSearch