Okay so I am posting a new thread because the other one I made was kind of on the wrong track.
I am creating a family tree program. I need functions to add stuff to it and search for people inside it. Right now I am in the process of testing various functions to see if they do what I want.
I am currently trying to make a search function.
Here is my code thus far (not separated by multiple files yet, purely for testing)
Currently when I run that search function in the main, I get a seg. fault.
I am trying to figure out the best way to have it search through my family tree. It needs to check the initial person, their spouse, their siblings, their kids, then it needs to check all of the above for their kids and so on.