Question: :C++ Binary Tree : Error Creating Special Binary Tree Main.Cpp Bt.H C++ Binary Tree : Error Creating Special Binary Tree Main.cpp using namespace std; covo

:C++ Binary Tree : Error Creating Special Binary Tree Main.Cpp Bt.H

C++ Binary Tree : Error Creating Special Binary Tree

Main.cpp

using namespace std; covo AWNA Bint main() { bt morseTree; return 0;\" v:shapes=\"Picture_x0020_199\">

bt.h

#include using namespace std; class bt { private: struct node { node* left; node* right; string m\" v:shapes=\"Picture_x0020_200\">

bt.cpp ( error )

Note : Line 22 is ... else if (strVariable[i] == '_') {

morseTable.txt

I'm trying to create a binary tree of depth four. Once that is created, I iterate through each line in morseTable.txt and (ideally) maneuver through the tree, as it shows in bt.cpp. Once I reach the end of maneuvering it's supposed to assign those values accordingly. However, there's an error along the way of this displayed in bt.cpp. Is anyone capable of finding where this is going wrong so I can successfully (hopefully continue) to create the tree displayed below?

Thank you

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!