programming-examples/c++/Others/TestStackAr.cpp - Test program for (array-based) s.cpp
2019-11-15 12:59:38 +01:00

18 lines
382 B
C++

TestStackAr.cpp - Test program for (array-based) stacks
#include <iostream.h>
#include "StackAr.h"
int main( )
{
Stack<int> s;
for( int i = 0; i < 10; i++ )
s.push( i );
while( !s.isEmpty( ) )
cout << s.topAndPop( ) << endl;
return 0;
}