我正在C++中的二进制搜索树。我越来越运行gdb的报道后,下面的错误在我的节目(我收到一个段错误): #0 0x08049058 in searchTree::tree_node<int>::getLeft (this=0x0) at bst.hxx:75
#1 0x08048ed8 in searchTree::bst_iter<int>::operator++ (this=0xbffff4b
所以我试图学习如何编写我的第一个BST,这很难....我只用几行代码就遇到了麻烦。问题在插入,但我已经包括了一切,以便我可以得到我的风格/其他错误的一些反馈。我被建议使用指针实现的指针,但我们还没有学到它,所以我不觉得舒适/知道如何编写它。在 误差 cc1plus: warnings being treated as errors
tree.cpp: In member function âbo