7.2) Exercise 12
- Copy your Exercise 11 solution to a new file. Modify this new program so that it uses a list instead of a vector. This should be as simple as globally replacing
vector
withlist
! - Check that the program compiles and that it behaves as in Exercise 11.