How would I go about making a linked list by using a void function? I'm receiving my input from a text file, and I can manually go through and make the linked list, but I just found out I need to use a function to produce the linked list. Any help would be greatly appreciated!
You cannot just make a linked list using a void function. You need to design the data structure to hold each node, as well a a managing class to handle node insertion, deletion, etc. You could store your data in a vector.