Search the forum for "Linked list" and you'll find many threads that address this issue. A few common beginner problems come to mind:
1. Create separate classes for the Node in the list, and the list itself. The list class contains a private Node pointer (the head of the list) and the methods to insert/search/delete etc.
2. The Node class should contain a constructor. This will help reduce the code and avoid errors. For your example:
You really need to learn how to use google, a lot of your questions on this forum can be answered by a simple google search, Linked lists has been done a million times, and all the information you need can be easily accessed. No need to create a new thread for such a generic question.
(a) a massive repository of information, including tutorials on subjects like this
(b) some kind of free, publicly available tool for retrieving information from that repository.
If only any of us could think of something like that, that we could recommend you use!
Wouldnt life be much easier if we had such a thing @MikeyBoy? I only hope the future brings it so we can all have a better life, especially for our children.
I find that hard to believe. Writing a linked list is a very, very common tutorial exercise, and there must be - literally - thousands of examples online.
If you have a specific question about linked lists that you can't find an answer for, then you need to ask that specific question.