ok so i am trying to print an int that is in a point but it wont let me, this is what i have...
i kno that will not print the whoe list, but im trying to start by just printing one and i cant!!! lol why is this wrong?Code:void linkedQueue::addRear(el_t newNum) { Node *rear; Node *front; if(count==0) { rear=new Node; rear->elem=newNum; front=rear; } else { rear->next=new Node; rear=rear->next; rear->elem=newNum; } count++; void linkedQueue::displayAll() { cout<<rear->elem; } }