 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| |
Statically
Allocated array...
|
|
private:
|
|
data array[SIZE];
|
|
int number_of_items;
|
|
| |
Efficiency
Discussion:
|
|
|
|
|
direct
access (insert at top position, remove at top
|
|
position)
|
|
|
|
|
the
first element would not be considered the top in
|
|
|
all
cases, why? ... unnecessary shifts!
|
|
|
|
|
problem:
fixed size, all stack objects have the same
|
|
|
size
array, size is set at compile time
|
|