Initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user