I want to create a chain of FridgeItem* for my Fridge project. I looked up a tutorial on Linked Lists, and have been trying to duplicate the code for the videos project for future reference. Here's the error I'm getting:
1 2 3 4 5 6
LinkedList.cpp:7:6: error: prototype for'void LinkedList::addToHead(const string&)' does not match any in class'LinkedList'void LinkedList::addToHead(const string& name)
^
In file included from LinkedList.cpp:1:0:
LinkedList.h:9:12: error: candidate is: void LinkedList::addToHead(std::string&)
void addToHead(std::string& name);