0
class BinaryTree {
    public:
        BinaryNode* root;
        
        bool search(int val, BinaryNode* zero = root){ // Error
            ...
       }
};

I have tried to add a static access specifier to root but it throws error: undefined reference to BinaryTree::root'

ashelkov
  • 7,847
  • 2
  • 6
  • 12
Sid_Emvi
  • 1
  • 1

0 Answers0