So I've finally gotten my code to work for the most part without any issue. I've used a bunch of Accessor methods to help with interacting with the "root". I think there is an issue with the Destructor. im not so sure it's even running. theoretically speaking, it should run and and delete the tree and then alert me that the tree has been deleted, any suggestions that would help via recursion??
The Code:
#include <iostream>
using namespace std;
struct Node
{
int data;
Node *left;
Node *right;
Nevermind, Thanks SO MUCH> I just realized the reason it just crash after is because I had "root" in the if statement smh, THANKS SO MUCH. I Set it to NULL and IT RUNS SMOOThLY!