-
0 votesanswersviews
在java中从地面实现树类
我从头开始实现一个树类,我有数据字段和构造函数,如下所示:public class TreeNode实现Node {int data; TreeNode孩子; TreeNode父级;字符串名称;布尔访问; public TreeNode(int data){ this.data = data; child = null; parent = null; name = ... -
-1 votesanswersviews
为什么我无法访问此私有变量?
我试图用OOP制作BST,我的讲师希望我把节点变成课堂,所以我制作了这段代码 node.h #ifndef node_h #define node_h #include <string> using namespace std; class Node{ public : Node(); Node(Node* left_node, Node*...