Hi, I got some problems with my program, but I cannot find wherethe bugs are. can you fix it? Thank you very much!
#include<iostream>
using namespace std;
class BST{
typedef int Item;
struct node
{
Item data;
struct node *left, *right;
};
node *root;
public:
~BST()
{
destory(root);
}
void r_print(node *r)
{
if (r != NULL)
{
r_print(r->left);
cout <<r->data << ” “;
r_print(r->right);
}
}
void print(){
OR
OR