Not sure what I am doing

the assignment is:
Revise the public method getFrenquencyof in the class LinkedBag so that it is RECURSIVE. I think I have the beginning and need to know where to go from here. Do use an an array or a vector? That is stupid, right??? I think I need a if/else loop???

template<class ItemType>
int LinkedBag<ItemType>::getFrenquencyOf(const ItemType& anEntry) const
{
int frequency = 0;
int counter 0 ;
Node<ItemType>* curPtr = headPtr;
while ((curPtr != nullptr) && (counter < itemCount))
{
Topic archived. No new replies allowed.