Drucken LinkedStack CPP

void PrintList(){
        Node* n=new Node();
        n=top;
        while (n!=NULL)
        {
            cout<<n->data<<"\n";
            n=n->Next;
        }
    }
Scary Shark