Write a simple text editor, which stores and displays a string of characters using the positional list
Question:
Write a simple text editor, which stores and displays a string of characters using the positional list ADT, together with a cursor object that highlights a position in the string. The editor must support the following operations:
• Left: Move cursor left one character (do nothing if at beginning).
• Right: Move cursor right one character (do nothing if at end).
• Insert c: Insert the character c just after the cursor.
• Delete: Delete the character just after the cursor (if not at end).
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Data Structures and Algorithms in Java
ISBN: 978-1118771334
6th edition
Authors: Michael T. Goodrich, Roberto Tamassia, Michael H. Goldwasser
Question Posted: