Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using c++, create a header file for the following problem. Assignment 3: Linked List String Due Date: Friday, March 3rd, 2023 Design and implement an

using c++, create a header file for the following problem.image text in transcribed

Assignment 3: Linked List String Due Date: Friday, March 3rd, 2023 Design and implement an ADT Stringlist that represents a string by using a linked chain of characters. All your strings will be allocated on the heap. Indude the following constructors and functions: is The parswetrized constructor will take s stdi:string type ifand construet a string Linked Liet frail that abject Stringlist(ponst std: :string str); if The function calculates the length of the string Linked List ifit doesn't count the null at the end int Stringlist:getsize[] oonst; if The function converts the object into a std:istring built-in data type stdistring stringlist:itastring(l eorst; il The function returns the index of the first occurrence of a cheracter in if the String Linked Liat in stringl ist : sindeaof (char e) enist: if The function returns the character at a particular index in the string Linked if List char stringlist:zgetohar(1nt index) const; if The function ingerts a character at a particular index in the String Linked if isist void Stringlist:ingertat;int index, ehar o) const; is The funetion prints the String Linked List by traversing it void stringListiprintist() const; if The evarrieden aperatae mppenda the passed atring to the end ar the abject's isstringList Stringl ist stringlist : operstort [const std: string srhs] eonst: An example for calling the coristructor new String List(' "ABCDABC") would produce a String Linked List as follows: A=2B=2CD=DABC

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

Accounting For Managers

Authors: William Webster

1st Edition

0071421742, 978-0071421744