> 其他 >
p=head=new AB; head->next=NULL; q=new AB;p->next=q; p=q; q->next=NULL; q=new AB;
人气:105 ℃ 时间:2020-04-02 09:21:02
解答
p=head=new AB; //p和head指向一个新分配的节点head->next=NULL;//head所指向的结点的next指针设置成NULLq=new AB; //利用q指针申请一个新结点p->next=q;//让p所指向的结点的next指向q结点,启动连接作用,即把p和...
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版