求教一个链表问题
void insert(Node * head,int p,int x){ Node * tmp = head;
for(int i = 0;i<p;i++){
tmp = tmp->next;
if(tmp == NULL) return ;
}
Node * tmp2 = new Node; //这个地方的new Node什么意思???
tmp2->data = x;
tmp2->next = tmp->next;
tmp->next = tmp2;
}