Im trying to find out if something is in this linked list function and if it is to return true and if not return false.
How do you find out if ThingType thing is in the list?
bool Thelist::Search(ThingType thing) const
{
Node* current;
current=listPtr;
while(current->thing != listPtr->thing)
{
}
}
//**************************************
my struct look like this
typedef Node* nodePtr;
struct Node
{
ThingType thing;
Nodeptr next;
};