[Solved] How does a linked list with Node class work in C++?

A nice tutorial is at: http://www.zentut.com/c-tutorial/c-linked-list/ From a programming perspective, normally your LinkedList class would have some methods to do the things you asked about, for example: Add – create a new entry at the end of the linked list InsertAfter(Node *n) – create a new entry after indicated node in the listed list Remove(Node … Read more

[Solved] I have a segmentation fault and am unsure about what is wrong with my code

The problem is obvious now you’ve said on which line the code crashes. Consider these lines… char *word = NULL; int i = 0; //index FILE *dictionaryTextFile; dictionaryTextFile = fopen(dictionary, “r”); //scan for word while(fscanf(dictionaryTextFile, “%s”, word) != EOF) You’ve got 2 problems there. Firstly, you don’t check that the call to fopen worked. You … Read more