Hey i have a DoublyLinkedList and anytime i try to call the methods from the header file. I call statsList. because i have the DoublyLinkedList declared to that as you can see here in my code:
DoublyLinkedList<int>* statsList = new DoublyLinkedList<int>;
int main()
{
DoublyLinkedList<Stats> list;
Stats stats;
bool exit = false;
int menuChoice;
while (!exit)
{
switch (menuChoice)
{
case 1:
cout << "Insert";
{
stats.Details();
}
break;
case 2:
cout << "Delete";
{
statsList.Remove();
}
But the problem is is that im getting an error:
Error:Expression must have a class type.
Can anyone help?
This:
should be:
as
statsListis a pointer (DoublyLinkedList<int>*).