皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
下面给出了一个将的前 m 个结点与后 n 个结点进行交换的算法。已知结点的类型均为 LNode 型,算法中使用了三个辅助指针变量( ta,hb,tb ),请填空完成该算法。 typedef struct LNode{ int data;// 数据域 struct LNode *next;// 指针域 }*LinkList void exchange(LinkList &L,int m){ ta=L;i=0; while(ta&&i next){ hb= ta->next;tb=hb; while( ( 空2 ) ) tb=tb->next;// 查询表尾 bn }//if ta->next= ( 空3 ) ; tb->next= ( 空4 ) ; L->next= ( 空5 ) ; }// exchange
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】本课程的评分方法:
A.
每次面授实践考勤均计入课程成绩
B.
网上在线作业习题计入课程总分
C.
学生自己任选的一项操作实践考试
D.
以上都是
【单选题】作为旅游产品的购买者和消费者,旅游者有权( )
A.
制订旅游线路
B.
调整旅游价格
C.
审核活动计划
D.
更新旅游产品
【单选题】The job that had been offered to George Strong in Birmingham paid better.
A.
Right
B.
Wrong
C.
Not mentioned
【单选题】He told his friends that he ___ what he was reading at the same time the day before.
A.
was just asked
B.
just asked
C.
had just asked
D.
had just been asked
【单选题】He asked Mary whether she had passed the exam ________.
A.
yesterday
B.
the day before
C.
the day ago
D.
before the day
【单选题】He said he had seen that film ___.
A.
yesterday
B.
the next day
C.
the following day
D.
the day before
【简答题】Not until the day before yesterday _________to give a speech at the meeting. A) he agreed B) does he agree C) he agrees D) did he agree
【单选题】The joke about doctors implies that, in the eyes of nurses, they are______.
A.
have the right to enjoy some privileges
B.
very conscious of their godlike role
C.
not polite to new arrivals
D.
busy even during lunch hours
【单选题】Because it takes longer to install and involves some tinkering to get it to work just right, it's best for more experienced users. But, oh, what joy! ______ a detailed log of every ad it annihilates, ...
A.
Not only Killer keeps, but also
B.
Not only does Killer keep, /
C.
Only Killer keeps, and
D.
Only if Killer keeps, /
【单选题】作为旅游产品的购买者和消费者,旅游者有权()
A.
制订旅游路线
B.
调整旅游价格
C.
审核活动计划
D.
更新旅游产品
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题