Question: C + + , Visual Studio. I've been getting four LNK 2 0 1 9 errors on my project. I've been trying to fix them
C Visual Studio. I've been getting four LNK errors on my project. I've been trying to fix them thinking there is a problem between the header and the cpp file of BinarySearchTree. However I've come to realize that the methods Im calling in my driver, while they have the same name, are not compatible with my BinarySearchTree. I would appreciate it if using the attached photos you could provide a fix that makes my driver compatible with the BinarySearchTree. Due to formatting issues the includes do not appear. The driver includes iostream. Driver.cpp: #include "BinarySearchTree.h
#include
bool isSameTreeconst BinarySearchTree& tree const BinarySearchTree& tree
return treeequalstree;
int main
BinarySearchTree tree tree tree tree;
Adding elements to tree
treeaddabc;
treeadddef;
treeaddghi;
Adding elements to tree in a different order
treeadddef;
treeaddabc;
treeaddghi;
Adding elements to tree
treeaddabc;
treeadddef;
Adding elements to tree with an extra element
treeadddef;
treeaddabc;
treeaddghi;
Output comparison results. Expected result for trees and : true. Expected result for trees and : false.
std::cout "Trees and are isSameTreetree tree "the same." : "not the same." std::endl;
std::cout "Trees and are isSameTreetree tree "the same." : "not the same." std::endl;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
