Question: Write a program to code text editor. Note: Use DSA C++ Language. The goal of this program is to implementing and using stacks and linked

Write a program to code text editor.

Note: Use DSA C++ Language.

The goal of this program is to implementing and using stacks and linked structures. You should also continue to use object-oriented design. For this program, you will implement a text editor. Your editor will display a string of characters and a cursor. Your program will allow the user to move the cursor and modify the text using the following five operations:

  • left - move the cursor to the left one character or do nothing if at the end of the line
  • right - move the cursor to the right one character or do nothing if at the end of the line
  • rdelete n - delete n characters to the right of the cursor
  • ldelete n - delete n characters to the left of the cursor
  • insert c - insert the character c just before the cursor

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!