题目内容

试题六阅读下列函数说明和C函数,将应填入___(n)___处的语句写在答题纸的对应栏内。[函数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 nodeint 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;

查看答案
更多问题

软件开发环境是支持软件产品开发的软件系统,它由软件工具集和环境集成机制构成。环境集成机制包括:提供统一的数据模式和数据接口规范的数据集成机制;支持各开发活动之间通信、切换、调度和协同的 (29) ;为统一操作方式提供支持的 (30) 。 (29)处填()。

A. 操作集成机制
B. 控制集成机制
C. 平台集成机制
D. 界面集成机制

WLANs are increasingly popular because they enable cost-effective connections among people, applications and data that were not possible, or not cost-effective, in the past. For example, WLAN-based applications can enable fine-grained management of supply and distribution (1) to improve their efficiency and reduce (2) . WLANs can also enable entirely new business processes. To cite but one example, hospitals are using WLAN-enabled point-of-care applications to reduce errors and improve overall (3) care. WLAN management solutions provide a variety of other benefits can be substantial but difficult to measure. For example, they can protect corporate data by preventing (4) through rogue access points. They help control salary costs, by allowing IT staffs to manage larger networks without adding staff. And they can improve overall network management by integrating with customers’ existing systems, such as Open View and UniCenter. Fortunately, it isn’t necessary to measure these benefits to justify investing in WLAN management solutions, which can quickly pay for themselves simply by minimizing time-consuming (5) and administrative chores. 2()

A. personnel
B. expenses
C. overhead
D. hardware

在文件管理系统中,位示图(Bitmap)可用来记录磁盘存储器的使用情况。假如计算机系统的字长为32位,磁盘存储器上的物理块依次编号为0、1、2、…,那么3552号物理块在位示图中的第()个字。

A. 111
B. 112
C. 223
D. 446

WLANs are increasingly popular because they enable cost-effective connections among people, applications and data that were not possible, or not cost-effective, in the past. For example, WLAN-based applications can enable fine-grained management of supply and distribution (1) to improve their efficiency and reduce (2) . WLANs can also enable entirely new business processes. To cite but one example, hospitals are using WLAN-enabled point-of-care applications to reduce errors and improve overall (3) care. WLAN management solutions provide a variety of other benefits can be substantial but difficult to measure. For example, they can protect corporate data by preventing (4) through rogue access points. They help control salary costs, by allowing IT staffs to manage larger networks without adding staff. And they can improve overall network management by integrating with customers’ existing systems, such as Open View and UniCenter. Fortunately, it isn’t necessary to measure these benefits to justify investing in WLAN management solutions, which can quickly pay for themselves simply by minimizing time-consuming (5) and administrative chores. 5()

A. exploitation
B. connection
C. department
D. deployment

答案查题题库