struct treenode { int value; treenode* left; treenode* right; };
i'm studying code of binary tree data structure , stumbled upon never seen yet, can explain keyword value
means? confused me, because members in struct green in ide.
it's not keyword, it's name of struct member of type int
.
treenode node; node.value = 1; std::cout << node.value << std::endl;
Comments
Post a Comment