Inserting nodes into a tree

Andrej Mitrovic andrej.mitrovich at gmail.com
Fri Feb 11 11:49:41 PST 2011


On 2/11/11, Steven Schveighoffer <schveiguy at yahoo.com> wrote:
> struct Node
> {
>     int id;
>     string myName;
>     Node *parent; // only needed if you want to go up the tree.
>     Node *[] children;
> }
>
> -Steve
>

What are the benefits of using struct pointers instead of classes in this case?


More information about the Digitalmars-d-learn mailing list