I hope people don't think I'm asking for them to do my homework for me, but I am having trouble with this project I have been working on.
Basically, I have to create a binary search tree, which holds records from a file I read from disk.
The one function I am have a problem with is the remove function whenever a node has two children. If someone can take a look at my code and nudge me in the right direction I'd appreciate it.
The troublesome code is in the bst.cpp file, and it is the remove function.
Thanks in advance,
Faisal
http://206.55.145.229/project5.html
Basically, I have to create a binary search tree, which holds records from a file I read from disk.
The one function I am have a problem with is the remove function whenever a node has two children. If someone can take a look at my code and nudge me in the right direction I'd appreciate it.
The troublesome code is in the bst.cpp file, and it is the remove function.
Thanks in advance,
Faisal
http://206.55.145.229/project5.html