Answered step by step
Verified Expert Solution
Question
1 Approved Answer
These are the other 2 files that are required: please do not change them this is the driver file this is the string list header
These are the other 2 files that are required: please do not change them
this is the driver file
this is the string list header file:
Please write the code in c++
Also please please implement numerous amounts of comments so that I could understand whats going on.
Problem: Implement an interface that manipulates a list of strings. You will be provided with the following files on TRACS (Resources/PA#5 provided code): StringList.h containing a class declaration, set up for a linked list representation. You will be responsible for providing the StringList.cpp file, including the implementation of the StringList member functions (described below): StringList and StringList: creates an empty list, and deallocates all the nodes in the list, respectively. add(string str) Adds a new node containing str to the end of the list. display(): displays the strings in the list to the screen, one string per line. findFirst(string str): returns the index of the first node which contains the string str (like linear search). Returns -1 if not found. Does not change the list! findLast(string str): returns the index of the last node which contains the string str. Returns-1 if not found. Does not change the list! remove(int position) removes the node at the given position from the linked list. Returns true if successful, otherwise false (if the position is not valid for the list). reverse(): reverses the order of the values in the stringList. Hint: use 3 temporary pointersStep 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