Question: C++ Errors: I am trying to read in a text file with data about movies. The program will then display an interface to the user

C++ Errors: I am trying to read in a text file with data about movies. The program will then display an interface to the user and allow them to search for movies, rent movies, etc. The data structure used to store the data will be a Binary Search Tree. However, I am havin trouble just reading in the file and printing the data to check if the program is working correctly. Here is the error message I recieve after I try to compile it:

C++ Errors: I am trying to read in a text file with

If I comment the movieTree object and the #include "MovieTree.hpp" it compiles and runs, but doesn't print anything out.

Here is my code:

data about movies. The program will then display an interface to theuser and allow them to search for movies, rent movies, etc. The

Here is a sample of the text file:

data structure used to store the data will be a Binary Search

Here is the header file:

Tree. However, I am havin trouble just reading in the file and

printing the data to check if the program is working correctly. Here

movtelest /tmp/ccn2JFLao: In function 'main': movieTest.cpp:.text+0x33): undefined reference to MovieTree: :MovieTee(O movieTest.cpp:(.text+0x2e6): undefined reference to MovieTree ::addMovieNode(int , std:: Cxx11::basic string, std::allocator, std::allocator

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 Databases Questions!