Hi Everyone I'm losing my mind trying to find out what is wrong with my Binary Tree Class. when I go to insert a node into the tree the entire program crashes. Does anyone a have any suggestions?
#include <iostream>
using namespace std;
struct TreeNode
{
int item;
TreeNode *left;
TreeNode *right;
};
class treeClass
{
public:
treeClass();
void insert(TreeNode *node, int item);
bool treeContains(TreeNode *node, int item);
void destroy_Tree(TreeNode *node);
void inOrderPrint(TreeNode *node);
~treeClass();