Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a singly linked list in order to provide the functionality of the line editor. The entire text in one line is stored in a

image text in transcribed

Create a singly linked list in order to provide the functionality of the line editor. The entire text in one line is stored in a node of the singly link list. One node of the list contains text and address of next node. (Create Node.h, editor.h, editor.cpp, driver.cpp files) 1. Create a function insertNode () which takes input of the text, and store it in a newly created node. The position of the created nodes depends on the last character of text. If no previous lines exist then this new node will be the first node. If last character of the text is a letter or full stop then the new node will be placed in the next position of the previous node. If the last character is a number then the new node will be created at that position. In this case if there are two nodes currently present in the list and the number indicates 5 position then the third and fourth nodes will have empty data. 2. Create a printList() function to show the working of your created line editor

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

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions

Question

DESCRIBE how accidents at work can be prevented .

Answered: 1 week ago

Question

=+ How would you advise those problems be resolved?

Answered: 1 week ago