-
Starting with the orderedList
source code from Lab Assignment AB29.2, OrderedList, modify the class definitions to implement a doubly-linked list.
-
The requirements for this lab:
-
Read a data file (file10.txt) from disk and build an ordered doubly-linked list.
-
Print the list in the forward direction. Include a line number for each pair of id/inv values.
-
Print the list in the backward direction. Include a line number for each pair of id/inv values.
-
Delete the following values:
57
, 12500
, 184
, 13066
, 23456
, 19967
, 13066
Be aware that your algorithm must deal with attempts to delete values that are not in the list.
-
Print the list again in the forward direction only.
-
You might want to test your delete algorithm on a shorter file, such as (file3.txt).