This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/cplbexam/contain/wcstack.cpp

19 lines
411 B
C++

#include <wcstack.h>
#include <iostream.h>
void main() {
WCStack<int,WCValSList<int> > stack;
stack.push( 7 );
stack.push( 8 );
stack.push( 9 );
stack.push( 10 );
cout << "\nNumber of stack entries: " << stack.entries() << "\n";
cout << "Top entry = [" << stack.top() << "]\n";
while( !stack.isEmpty() ) {
cout << stack.pop() << "\n";
};
cout.flush();
}