Answered step by step
Verified Expert Solution
Link Copied!

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++

image text in transcribed

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 list

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

Database Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

1292107634, 978-1292107639

More Books

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago