-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
29 lines (22 loc) · 758 Bytes
/
main.cpp
File metadata and controls
29 lines (22 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <iostream>
#include "treeNode.h"
int main() {
treeNode theTree = treeNode(); //insert test nodes
theTree.insertTreeNode(8);
theTree.insertTreeNode(4);
theTree.insertTreeNode(12);
theTree.insertTreeNode(2);
theTree.insertTreeNode(6);
theTree.insertTreeNode(10);
theTree.insertTreeNode(14);
theTree.insertTreeNode(1);
theTree.insertTreeNode(9);
theTree.insertTreeNode(11);
cout << theTree.findTreeNode(4) << "\n";
cout << theTree.findTreeNode(5) << "\n";
cout << theTree.findTreeNode(6) << "\n";
cout << theTree.findTreeNode(10) << "\n";
cout << theTree.findTreeNode(9) << "\n";
theTree.printTreeNode();//prints node --
theTree.horizontalNodePrint();//prints tree --
}