int main() { int maxSize = 5; LinkQueue *lq = new LinkQueue(maxSize); for(int j = 0; j < maxSize+2; j++) lq->insert(j); lq->displayQueue(); for(int j = 0; j < maxSize+2; j++) { double tmp = lq->remove(); if(tmp != -1) cout << tmp << " "; } cout << endl; delete lq; return 0; }