Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
TestQueueAr.cpp - Test program for queues
|
||||
|
||||
#include <iostream.h>
|
||||
#include "QueueAr.h"
|
||||
|
||||
int main( )
|
||||
{
|
||||
Queue<int> q;
|
||||
|
||||
for( int j = 0; j < 5; j++ )
|
||||
{
|
||||
for( int i = 0; i < 5; i++ )
|
||||
q.enqueue( i );
|
||||
|
||||
while( !q.isEmpty( ) )
|
||||
cout << q.dequeue( ) << endl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user