Help with project

Status
Not open for further replies.
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
 
Apologies for not being more specific PsychoOne. I was in a bit of a rush to get out the door to make it on time to the LA Kings Hockey game :)...

I get a memory access error whenever I try to remove a node with two children. When I select to debug the program it directs me to the first assignment statement in the overloaded operator= in my cityrecord class. Hope that is a little more clear. Oh and I cut and pasted a screenshot of the error I get when trying to run the program under this condition.
 
Status
Not open for further replies.