[英]N-ary tree implementation
I am new to C++ and I'm trying to create to learn more about K-ary Trees. 我是C ++的新手,我正在尝试创建以了解有关K-ary Trees的更多信息。 Could you help me define a
KAryTreeNode
, assuming the information stored in the node is a character array. 你能帮我定义一个
KAryTreeNode
,假设存储在节点中的信息是一个字符数组。
class KAryTreeNode{
char * data;
vector<KAryTreeNode *> children;
};
something like that. 类似的东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.