if(Box->head == NULL)
{
Box ->head = Box -> tail = Box;
cout<<Box->data
}
else
{
Box->tail -> next = Box;
Box -> tail = Box;
Box-> data = i;
cout<<Box->data;
}
actually this code doesn't point to the same code imo.
when I put cout<<Box->Data in there.
after I say how many boxes.
I would see
say i enter 5
5
1
2
3
4
5
that's what I'll see