user3067465
user3067465

Reputation: 1

N-ary tree implementation

I am new to C++ and I'm trying to create to learn more about K-ary Trees. Could you help me define a KAryTreeNode, assuming the information stored in the node is a character array.

Upvotes: 0

Views: 1477

Answers (1)

Moha the almighty camel
Moha the almighty camel

Reputation: 4443

class KAryTreeNode{

char * data;
vector<KAryTreeNode *> children;

};

something like that.

Upvotes: 2

Related Questions