I want to store some employee information in 2 structs linked together by Node *top. Each employee should have their own linked list, but this code piles all the info into 1 linked list. How do I access the next node so that new information can be stored there?
I just realized the error, I had it in my other code. I've fixed it now. But it's still left me with the same problem.
eg)This is the txt file
1 2 3
Joseph 3 farming 10 fishing 5 hunting 3
Mary 2 sewing 15 talking 20
Sally 0
My code gives me a linked list of hunting, fishing farming, talking, sewing
What I am trying to do is give Joseph a LL for farming, fishing, hunting & Mary a LL for sewing and talking separately. Essentially giving each entry into e[i] their own linked list by using a pointer to the first Node of that Emp
I 'm just confused about the syntax to use.