The C++Course provides a general introduction to programming in C++. It is based on A.B. Downey's book, How to Think Like a Computer Scientist. Click here for details. |
Home Stacks The Stack ADT | ||
The Stack ADT
As I said, an ADT is defined by the operations you can perform on it. Stacks can perform only the following operations:
A stack is sometimes called a "last in, first out," or LIFO data structure, because the last item added is the first to be removed.
|
||
Home Stacks The Stack ADT |