C++ Binary Search Tree status access violation error with adding nodes
问题 I'm working on a program that works with a binary tree. I'm getting an error with adding new nodes into the tree. I can add one node, but after adding another, I get a STATUS_ACCESS_VIOLATION error. I think the error could be with the function arguments dealing with the search function. Please help me if you can. Here is he .h file that i've written: #ifndef P4_H #define P4_H #include <iostream> #include <iomanip> #include <fstream> #include <cctype> #include <string> using namespace std;