// @topic W09-3-010 IntStack class using dynamic array v1
// @brief main driver program using IntStack class
#include <iostream>
#include <cstdlib>
#include "int_stack.h"
int main()
{
IntStack st;
//std::cout << "top of st: " << st.top() << "\n";
// stack operations demo:
st.push( 11 );
st.push( 22 );
st.push( 33 );
st.push( 44 );
std::cout << "top of st: " << st.top() << "\n";
std::cout << "size of st: " << st.size() << "\n";
st.pop();
while ( st.size() > 0 ) {
st.pop();
}
system("pause");
return 0;
}