EBK DATA STRUCTURES AND ALGORITHMS IN C
EBK DATA STRUCTURES AND ALGORITHMS IN C
4th Edition
ISBN: 9781285415017
Author: DROZDEK
Publisher: YUZU
Question
Book Icon
Chapter 3, Problem 5PA
Program Plan Intro

Simple Line Editor

Program Plan:

  • A linked list which containing the nodes of type string is used to store the lines of the line editor.
  • Each line of the editor is saved in the each nodes of the linked list sequentially.
  • The line editor will start with a command “EDIT”, the word followed by the “EDIT” command will treated as the file name.
  • The command “I” is used to insert in the editor.
    • If the command “I” is followed by a number, the next line will save at that specific line.
    • If the insert comment “I” does not follow by any numbers, the next line will insert in the current position.
  • The command “D” is used to delete the lines from the editor.
    • If “D” is not followed by any numbers, then current line will be deleted.
    • If “D” is followed by one number, the line at that specific number will be deleted.
    • If “D” is followed by two numbers, then all the lines between those lines will be deleted.
  • The command “L” is used to list the lines as the delete does.
  • The command “A” will append the next line inserted to all the existing lines.
  • The command “E” is used to save the lines to a text file and exit the editor.

Blurred answer
Students have asked these similar questions
Write an example of a personal reflection of your course. - What you liked about the course. - What you didn’t like about the course. - Suggestions for improvement. Course: Information and Decision Sciences (IDS)  The Reflection Paper should be 1 or 2 pages in length.
How can I perform Laplace Transformation when using integration ?
Using R language
Knowledge Booster
Background pattern image
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning