Following is my code to recursively delete every nodes in a Binary Search Tree:

```
template <class T>
bool BST<T>::clear()
{
    if(root == NULL)
    {
        cout << "Empty" << endl;
        return false;
    }
    else
    {
        clearNodes(root);
        return true;
    }

}

template <class T>
void BST<T>::clearNodes(BTNode<T> *cur)
{
    if(cur == NULL)
    {
        return;
    }

    clearNodes(cur->left);
    clearNodes(cur->right);

    delete cur;
}

```

In my main function, when I try to print out the content to check whether the nodes are deleted after running my clear function, somehow I encounter the weird display here:
[![Image](https://i.stack.imgur.com/alihW.png)](https://i.stack.imgur.com/alihW.png)

May I know that is my nodes are actually deleted through the clear function above? 

Thanks for your guides!