Data Structures
•
Dynamically Allocated array...
•
private:
•
data * array;
•
int number_of_items;
•
int size_of_array;
•
Efficiency Discussion:
–
same as the previous slide, except for the timing of
when the array size is selected
–
each stack object may have a different size array
–
problem: memory limitations (fixed size)
•