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