Better Representations of stack?
Could use
a structure:
struct stack
{ int items[STACKSIZE];
int top = 0;
}
with functions pop, push, top,empty …
a class with methods pop, push …
Data Representation:linked lists, arrays ...
Previous slide
Next slide
Back to first slide
View graphic version