Question: In c++ write a program that will read lines from a text file put each line in a doubly linked list in reverse order then

In c++ write a program that will read lines from a text file put each line in a doubly linked list in reverse order then then put those lists in a main doubly linked list and reverse that one too.

ex file:

abc 123

efg 123

Expected results:

Reversed DLL:

NULL <-123<->abc<->NULL

NULL<-123<->efg<->NULL

Reversed main Doubly linked list of doubly linked lists:

NULL<- [NULL<-123<->efg<->NULL]->NULL

NULL<- [NULL <-123<->abc<->NULL]->NULL

DO NOT USE #include!!

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!