I need help with the some of the errors in my c++ program The errors are: Binary
ID: 3552769 • 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: