not working function with no errors
- by aya
hello..
I've implemented a function to display an avl tree after inserting nodes into it like this
template
void AVLtree::display() const
{
display(Proot);
}
template
void AVLtree::display(Node * ptr) const
{
if(ptr==0)
return ;
cout<value<<" ";
display(ptr-Pleft);
display(ptr-Pright);
}
after compiling,there were no errors ,the program worked but nothing were printed on the screen
help me please....!!
thanks