45 for (i = 0; i < 20; i++)
51 cout << stack.
pop() <<
" ";
53 catch (std::underflow_error)
55 cout <<
"Stack has been emptied" << endl;
Dynamic stack of elements of generic type T based on a singly linked list.
T pop()
Remove and return the top item of the stack.
T & push(const T &data)
Push an item by copy onto the top of the stack.
Main namespace for Aleph-w library functions.
Dynamic stack implementation based on linked lists.