Hi Got Problems Program Cannot Find Bugs Fix Thank Much Include Using Namespace Std Class Q37300486

1 Command Promct C: Users This program responds to commands the user enters to manipulate an ordered list of integers, which

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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.