Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

: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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Android Graphics

Authors: Wallace Jackson

1st Edition

1430257857, 978-1430257851

More Books

Students also viewed these Programming questions

Question

What are the benefits of studying psychology? (p. 17)

Answered: 1 week ago

Question

Draw a schematic diagram of I.C. engines and name the parts.

Answered: 1 week ago