You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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;
}