Hi, I am very new to C++ (C# is my normal language), I am having some problems with a LinkedList. Could someone please tell me where I am going wrong. I would really appreciate any help anyone can provide
On a quick look through I doubt it will compile. On lines 53 to 57 you are calling addToEnd() with the first parameter of a instance to LinkedList but you haven't got an addToEnd() method that will accept that as the first parameter, it's expecting a node ......something. I think you have you're syntax mixed up here. You either want a node * start or a node & start the first is a pointer the second is a reference. They are both effectively pointers but the syntax of how you use them is different. In your case I would probably use the pointer as it ties in with the syntax you are using - reference uses the dot type notation rather than the ->.
If you want to pass a LinkedList then either create an overridden addToEnd() or change the parameters of the one you have.
The mechanics of your linked list code seems fine, you may want to create a constructor to initialise you start member to NULL though, and a destructor to clear the list..
I'm just going to point out. If you look up the C++ STL (Standard Template Library) It has linked-lists etc already developed for you. Just incase your not aware.