Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help with the some of the errors in my c++ program The errors are: Binary

ID: 3552770 • Letter: I

Question

I need help with the some of the errors in my c++ program

The errors are:

BinarySearchTree.hpp|6|error: BinarySearchTree does not name a type|

BinarySearchTree.hpp|19|error: BinarySearchTree has not been declared|

BinarySearchTree.hpp|21|error: m_root was not declared in this scope|

BinarySearchTree.hpp|40|error: expected primary-expression before * token|

BinarySearchTree.hpp|45|error: expected initializer before < token|


BinarySearchTree.h (http://pastebin.com/HX8Q1CbK)


BinarySearchTree.hpp (http://pastebin.com/cYz7FkSq)


Node.h (http://pastebin.com/Y0fPZtue)


Node.hpp (http://pastebin.com/bzcRuceR)


main.cpp (http://pastebin.com/34x9Xieb)


I'm really stuck with this simple errors. Any help would be great

Thanks

Explanation / Answer

I believe when you define functions of a templated class you have to include the <T>, for example: