Exercise: Persistent Linked-List
Write a program to maintain a list of int s in a file
- on first use, asks for all values
- on subsequent uses ...
- list is read, re-created and displayed on startup
- asks user for index of element to change, and a new value
- if user types an index longer than current list
- appends value to linked list
- repeats until negative index entered
- then frees list and quits
|