I’m a c++ n00b. I’m learning c++ now. I got a problem which asks me to create parent-child-sibling tree and do some basic stuff like creating and destroying nodes and printing siblings of particular nodes. So can you explain me how to create that?
Share
You want to extend a linked list data structure to use parent and child elements. Here’s a nice tutorial on linked lists: http://www.functionx.com/cpp/articles/linkedlist.htm
Once you get the idea, extending the code will be easy.