试题6阅读下列函数说明和C函数,将应填入______处的语句写在答题纸的对应栏内。[

题型:问答题

问题:

试题6
阅读下列函数说明和C函数,将应填入______处的语句写在答题纸的对应栏内。
[函数6说明]
函数DelA_InsB(LinkedList La,LinkedList Lb,int key1,int key2,int len)的功能是:将线性表A中关键码为key1的结点开始的len个结点,按原顺序移至线性表B中关键码为key2的结点之前,若移动成功,则返回0;否则返回-1。线性表的存储结构为带头结点的单链表,La为表A的头指针,Lb为表B的头指针。单链表结点的类型定义为:
typedef struct node
int key;
struct node * next;
* LinkedList;
[函数6]
int DelA InsB(LinkedList La,LinkedList Lb,int key1,int key2,int len)
LinkedListp,q,s,prep,pres;
int k;
if(! La->next‖! Lb->next‖->next‖len<=0)return-1;
p=La->next;prep=La;
while(p&&p->key!=key1) / * 查找表A中键值为key1的结点 * /
prep=p;p=p->next;

if(! p)return -1;/ * 表A中不存在键值为key1的结点 * /
q=p;k=1;
while(q&& (1) )/ * 在表A中找出待删除的len个结点 * /
(2) ;k++;

if(! q)return-1: / * 表A中不存在要被删除的len个结点 * /
s=Lb->next; (3)
while(s s && s->key!=key2) / * 查找表B中键值为key2的结点 * /
pres=s;s=s->next;

if(! s)return-1; / * 表B中不存在键值为key2的结点 * /
(4) =q->next;/ * 将表A中的len个结点删除 * /
q->next= (5)
pres->next=p; / * 将len个结点移至表B * /
return 0;


考点:计算机软件水平考试初级程序员初级程序员2004上半年下午试题
题型:问答题
用方框中合适的词或短语完成句子.
not only...but also...; both...and...; either...or...; neither...nor...; if;
as long as; so that; such...that...; so...that...; when; after; until
1. _______ you drive carefully, you will be very safe.
2. You will succeed _______ you work harder.
3. —I hear a new film is on these days. Shall we go to the cinema together, Lucy and Lily?
    —_______ Lily _______ I will go with you because one of us must be at home to help our
        father in the garden.
4. I can't find Tom anywhere. He is _______ in the classroom _______ in the library.
5. _______ my father_______ my mother are teachers. They both work in this school.
6. She is _______good at maths, _______ interested in English.
7. It must have rained during the night , _______the road is wet.
8. _______ it is Sunday today , you may go to the park.
9. We stayed at home _______ it rained.
10. The boy is _______ smart_______ he can work out the difficult problem.
11. She bought a digital camera online _______she saved a lot of time.
12. He told us _______ a funny story _______ we all laughed.
13. It was raining _______ we arrived.
14. His father didn't come back _______ he finished his homework.
15. I found your coat _______ you had left the house.
题型:问答题

闸阀作用是()

A、改变介质流动方向

B、调节介质流量

C、截止流体的流动

题型:问答题

双频谱指数分析(BLS)的概念主要为()

A.复杂脑电波的傅立叶数学换算

B.将EEG的特点用两个函数表达

C.借助计算机将EEG简单化、数量化、标准化

D.借助计算机EEG转换为三维模式

E.是大脑各区域的脑电波可数量化对比分析

题型:问答题

我国病案记录最早产生于()。

A.春秋战国

B.东晋

C.商代

D.西汉

E.19世纪初

题型:问答题

辅导期(暂认定)增值税一般纳税人到期后,应如何操作?

更多题库