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
Get step-by-step solutions from verified subject matter experts
