I realize the debugger would help but Im a little lacking on knowledge of using it at the moment. But I promise I will begin learning it asap! So if anyone also knows some good reading on how I can learn to use gdb via prompt. Id greately appreciate it! Thanks.
Share
Wow, that’s one big mess of code. I don’t have a clue what it’s for but there’s one problem I can see
In your
Nodeclass you have an array of fourNodepointers calledattachedNode. At no time in your code do you make those pointers point at anything. But you dereference those pointers in yourattachNewNodemethod. That’s a seg fault right there.I have no idea how to advise you to fix that problem (or any other problems you might have, I think there are a few) because I don’t have much idea what the code is supposed to be doing.
However one piece of advice. This code is too big and complex. Get a smaller piece of it working first, and gradually build up to the whole program. The slow and steady approach will get you there faster in the end.