Closed. This question needs to be more focused. It is not currently accepting answers.

Update the question so it focuses on one problem only. This will help others answer the question. You can edit the question or post a new one.

Closed 4 mins ago.

i would like to create a tree like structure in c++. since the number of children per node is arbitrary i would like to use stl vector for tree creation.

tree should look something like this:

https://i.postimg.cc/8zzT6jvJ/Diagram1.png

also

each node should contain some data, including one stl vector.

at the end i would like to be able to "merge" hierarchically in one large vector - something like this:

K-vector + I-vector + F-vector + B-vector + A-vector

thank you very much for your interest