C++ Recursive Search
Posted on 2007-08-07
I am currently helping my nephew with a C++ class, though my C++ is marginal at best, and I must admint I'm a bit stumped on a question he has for an assingment. The question is to write a recursive sequential search function for a linked list and an array. The thing that is troubling me is that the functions prototype is to only pass to values, an int for the value to search for and a bool item to mark the search as true/false. So the prototype looks like..
void ItemType::Look(int val, bool& gotit)
I'm stumped to code this recursively..
P.S. I plan to help him not give the answer to him.. HA HA