#include #include "IntQueue.h" int main( ) { cout << "Active IntQueues: " << IntQueue::activeQueues( ) << endl; IntQueue q1; for( int i = 0; i < 10; i++ ) q1.enqueue( i * i ); cout << "q1: " << q1 << endl; IntQueue q2 = q1; q1.clear( ); cout << "q1: " << q1 << endl; cout << "q2: " << q2 << endl; IntQueue q3( 45 ); cout << boolalpha; // print booleans as true/false, not 1/0 cout << "q3 == 45? " << (q3==45) << endl; cout << "45 == q3? " << (45==q3) << endl; if( q3 == 45 ) { IntQueue q4; cout << "q4: " << q4 << endl; cout << "Active IntQueues: " << IntQueue::activeQueues( ) << endl; } cout << "Active IntQueues: " << IntQueue::activeQueues( ) << endl; return 0; }