Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using c++, create a main.cpp file that gets user input and calls appropriate functions Assignment 3: Linked List String Due Date: Friday, March 3rd, 2023
using c++, create a main.cpp file that gets user input and calls appropriate functions
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 in furtotion-shouldacepteonmand oe appropriate function accordingly: Enter a atriog: AEDGMATDMAdegfq 12 d Enfer a cammand: sine ra Indenor A 9 induever a II pariathist priahlint ABDGMTDMAdngfq 2 fdin 1276 Insertar 4b A>6>D>8>b>J>A>T>D>J>A>d>.>g>r>q>1>2>p>d>a>1>2332b getchar x E fadstring ABDGb TDMAdagfq 12 Idm 123b getsine 25Step 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