You trace through all the objects in a folder by following its child's brothers (follow only brother pointers). The main point of a binary tree is that there are two child pointers. With the structure I gave, you would be using a slightly non-standard interpretation of what left/right child means. Instead you would view it as First-SubFolder-Content / Next-CurrentFolder-Content.
Ok i unfortunetly give up..
I have a plan, which includes at least something from the imagined exam. On Friday I am going to hand over a sample of a general tree, no metter of the details, hierarchy, folders and documents..
It's going to be a simple general tree with > than 2 children. I believe it is a recommended start because I obviously don't understand some theory basics...
So here is my (and hopefully Our) new quest. I just need a working code with premade functions. I hope someone has what I am looking for, because it's an unavoidable topic for everyone who deals with structures and algorythms. Please post it here, I'll examine, study and retell my menthor things I actually understand.
The code I posted, in my opinion, is rather easy to understand. I just need to figure out the memory access violation error that keeps popping up. You might want to take a close look at it.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks