Usually they have only two, but I need to make an object were there are a random number of pointers. To represent this image enter image description here
Using what I know I made this:
struct tree{
    string name;
    list<struct pointer> pointers,
    tree(int x){
        name= x;
        pnext=null;
    }
} root1;
struct pointer{
    struct tree *pnext;
};
A tree or object with a list of pointers and the structure for the pointers, but I doesn´t seem right. How can I make a tree with a random number of pointers? (I should say what is wrong with but I don´t een know were to start, sorry)
 
     
    