programming-examples/c++/Others/TestQueueAr.cpp - Test program for queues.cpp
2019-11-15 12:59:38 +01:00

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