I have been fighting this for almost a week now and I can't figure out the issues. The program is not working the way that many of my previous assignments did. I have compared line by line trying to figure out what is different between the snipets of code that would cause the problem so if any one as an Idea what I am doing wrong with this please let me know.
Why do you define a NULL? You don't need to, it will complicate matters and maybe the reason for your problem. The confusion is that NULL needs to be applied to the node, but since it equals zero, then you run into troubles I assume. The int should just equal 0 when you create the object. Also, make a grocery header for its functions instead of putting it all in classes.h. Try that and see where you get?
In your method definitions you haven't been referring to the classes they belong to correctly. For example, instead of: void push_front(Node* N)
in myList, you should've written: void myList::push_front(Node* N)
in the definition.
You don't need this in the class definition, but outside that you need to specify what class the method belongs to!
I moved the grocery all byy itself and it has cut out a lot of the errors I was recieving the program complained when I took off the 0 for the NULL so I put the 0 back.
the program still seems to complain about the class definition for
That's the method declaration, it's inside a class definition.
The issue is with the use of 'Node', it doesn't recognise it. That's because you declare Node after this line. Move the Node class to the top to fix the issue.