皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
【第3-4题】设有一个不带表头结点的单链表,下面递归算法的功能是:(1) 删除以head为头指针的单链表中值为x的所有结点。(2) 输出以head为头指针的单链表中最大结点值。(3) 删除并释放以head为头指针的单链表中所有结点。请在空白处填入正确的语句。(1)voiddelall(LinkList&head,ElemTypex){LinkListp;if(head!=NULL){if(________①_________){p=head;________②________;free(p);_________③______________;}elsedelall(head->next,x);}}(2)ElemTypeMaxValue(LinkListhead){ElemTypem;if(__________④___________)return(head->data);m=_______⑤_________;if(_______⑥_________)returnm;elsereturnhead->data;}(3)voidrelease(LinkListhead){if(_______⑦________){release(head->next);_______⑧________;}}
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【简答题】判断下列句子属于何种句型。 He speaks English well.
【简答题】判断下列句子属于何种句型。 It slipped my mind.
【简答题】判断下列句子属于何种句型。 It cost me three dollars.
【简答题】判断下列句子属于何种句型。 Old habits die hard.
【简答题】判断下列句子属于何种句型。 Teacher will make your English better.
【简答题】Schubert had little academic training but a sure
【简答题】判断下列句子属于何种句型。 I sent you an E-mail.
【简答题】判断下列句子属于何种句型。 You can leave the door open.
【单选题】Until then did I realize that their marriage had ______ because they had little in common.
A.
put off
B.
given up
C.
broken down
D.
called off
【简答题】The little boy had no choice but (tell) ______ the truth.
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题