-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtreeNode.h
More file actions
36 lines (30 loc) · 805 Bytes
/
Copy pathtreeNode.h
File metadata and controls
36 lines (30 loc) · 805 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
30
31
32
33
34
35
36
//
// Created by Ricky Marly on 10/25/20.
//
#pragma once
#include "node.h"
#include "array"
#include "string"
class treeNode
{
public:
treeNode();
void insertTreeNode(int newAddInt);
int findTreeNode(int newFindInt);
void printTreeNode();
int getTreeHeight();
int getTreeNodeCount();
void horizontalNodePrint();
private:
int findTreeNode(node* otherNode, int newAddInt);
void insertTreeNode(node* otherNode, int newAddInt);
void printTreeNode(node* otherNode);
int getTreeHeight(node* otherNode);
void horizontalNodePrint(node* otherNode, int maxNodeHeight, string * array);
//variables being used in the project
node* root;//ref "same as -head-
node* otherNode;
int nodeCountVar = 0;
int numberCountVar = 0;
int count = 0;
};