Hi I'm having a lot of trouble with this problem. Here is the assignment...
Write the definition of the function template seqSearch to implement the sequential search on a vector object.
template<class elemType> int seqSearch(const vector<elemType> &list, const elemType& item); //If item is found in the list, return the //position of the item in the list; otherwise, returns -1.
Also, write a program to test the function seqSearch. Use the function push_back to insert elements in the vector object.
I can write a test function easily, i just cant even get a start on the actual function, I've tried multiple times and each time I've got a cluster f*&k of errors, so any help writing a function following that prototype would be much appreciated.