21 lines
464 B
C++
21 lines
464 B
C++
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;
|
|
}
|