Exemplo n.º 1
0
int main(int argc, char** argv)
{
    int x;
    Queue<int>* q = new Queue<int>();
    
    for(int i = 0; i < 5; i++) {
        q->Insert(i);
    }
    
    cout << "> ";
    while( (x = q->Retrieve()) != -1 ) {
        cout << x << " >";
    }
    
    delete q;
    return 0;
}