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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started