4. Change the function headings for ValueAt and Store so that the data types match those in the function prototypes. The bodies of ValueAt, Store, and the destructor do not need to be changed. Change the bodies of the constructor, copy-constructor, and CopyFrom functions by replacing
arr = new int[size];
with
arr = new float[size];
Chapter 18
Exam Preparation Exercises
2. True
5. Dynamic data structures can expand and contract during program execution.
8. a. array b. array c. dynamic linked list
Chapter 18
Programming Warm-Up Exercises
1. Function specification (within the OrdList class declaration):
int Length() const;
// Postcondition:
// Function value == number of components in list