Image

Imagehalfawake wrote in Imagecpp

I'm having trouble getting a wrapper function to work

I have an AVL trees assignment for my Data Structures class that I'm working on right now.


The following function is where I'm getting an error:

bool AVLtree::insert(int new_data)
{
insert(node,new_data,increased,success);
}

The compiler is giving me an undefined error for everything except for new_data.

Here is the definition of insert(node,new_data,increased,success):

void insert(AVLnode*& node, int new_data, bool &increased, bool &success);


I'm using the boolean insert function in an if statement inside int main() so I can't just use the other function instead.

Any help would be greatly appreciated.