So far I've made a linked list with relatively little help, which is why I now need it. My linked list "works" but to me doesn't look very efficient. For instance, in both my insert and delete functions I have to cycle through the whole list starting at the head to add in or delete a value. Is it possible I could do it a more efficient/better way? Pretty much what could I do to make this better. Thanks in advance!
What is the purpose of all those pointers in your class?
Why do you have to iterate through the whole list just to add an item. One of the purposes of a linked list is to be able to add or remove an element anywhere within the list. Also since you seem to have a tail pointer if you must always delete the last item why not just use the tail pointer to go to that item?
What's with this magic number while(x != 1337), 1337 is a valid integer, why can't I put this number into the list.
I really suggest you do a little more investigation of the purposes of lists, perhaps look at some documentation for the std::list class.
Well I'm using the pointers for the list. And yeah, now that I think about it this really is a messed up list. I just didn't know how else I would access an index so I just did that. But I'm not sure what you mean about the deleting the last item with the tail pointer? I just have while(x != 1337) so that I can break the loop with that magic number easily. I know its a valid number I just use it to breakout.