This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/cplbexam/contain/wcqueue.cpp

21 lines
474 B
C++
Raw Permalink Normal View History

#include <wcqueue.h>
#include <iostream.h>
main() {
WCQueue<int,WCValSList<int> > queue;
queue.insert( 7 );
queue.insert( 8 );
queue.insert( 9 );
queue.insert( 10 );
cout << "\nNumber of queue entries: " << queue.entries() << "\n";
cout << "First entry = [" << queue.first() << "]\n";
cout << "Last entry = [" << queue.last() << "]\n";
while( !queue.isEmpty() ) {
cout << queue.get() << "\n";
};
cout.flush();
}