Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using C++ Write a program using the list STL that will act as a line text editor. The program will have the following features: a.
Using C++
Write a program using the list STL that will act as a line text editor. The program will have the following features: a. Functions to insert, remove and empty the list. b. Function to display all current lines (special case if the editor is empty) c. Function to swap two lines (Assuming they exist) d. Function (Non-member) to display a menu with all these operations Test your program with the following procedures: 1. Add 1 line, delete 1^st line, delete 3^rd line, display list. 2. Add 4 lines, delete 3^rd, delete, delete 1^st, display list. 3. Delete list, display list. 4. Add 6 lines, delete 1 line, display listStep 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