Thanks guys. The error was fixed by changing the bugged line to
if(tree->root == NULL)
After that, there were a small number of logic errors in my main program, which I fixed. Now it's working...
Type: Posts; User: MSZShadow
Thanks guys. The error was fixed by changing the bugged line to
if(tree->root == NULL)
After that, there were a small number of logic errors in my main program, which I fixed. Now it's working...
Yeah, but I'm not too good at using gdb yet. I managed to use it to trace the error back to that point, but can't get much more out of it. I'll go try again.
Edit: It's giving me different...
Hey, I'm trying to write a program using binary search trees. Everything seems to work up to a certain point, which (as far as I know) shouldn't produce an error. It segmentation faults while it's...