Hello all,
in time of need I always come here to cry for help)
Anyways. What I need to do is to store data about people in a binary tree. They need to come from a file, but for now I can hardcode them in.
To put it simple, I will have 10 people (probably defined as structures with name, surname, age, phone number variables) where surname acts as a key.
I am totally new to binary trees - does it mean I will need to have a tree of structures? I have some sample code, but it only works for numbers, how can I modify it so it will take structures?
How do I go about it? General tips and even code would be great!
Also, I found some sample code and it has weird "->" symbols - what do they mean in my context?
Basically, I need a good push.
Thanks!