试题与答案

阅读以下函数说明和C语言函数,将应填入 (n) 处的字句写在对应栏内。 [说明1]

题型:填空题

题目:

阅读以下函数说明和C语言函数,将应填入 (n) 处的字句写在对应栏内。 [说明1] L为一个带头结点的循环链表。函数LinkList deletenode(LinkList L,int c)的功能是删除L中数据域data的值大于C的所有结点,并由这些结点组建成一个新的带头结点的循环链表,其头指针作为函数的返回值。 [C函数1] LinkList deletenode(LinkList L,int c) {LinkList Lc,P,pre; pre=L; p= (1) ; Lc=(LinkList)malloc(sizeof(Listnode)); Lc->next=Lc; while(P!=L) if(p->data>C){ (2) ; (3) ; Lc->next=p; p=pre->next; } else{ pre=p; p=pre->next; } return Lc; } [说明2] 递归函数dec_to_k_2(int n,int k)的功能是将十进制正整数n转换成进制数,并打印。 [C函数2] dec to k 2(int n,int k) { if(n!=O){ dec to k 2( (4) ,k); printf("%d", (5) ); } }

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0602/e42040a71da1d0add7775011267654ad.html

下面是错误答案,用来干扰机器的。

参考答案:A

试题推荐
题型:单项选择题

Cooperation is the common endeavor of two or more people to perform a task or reach a jointly cherished goal. Like competition and conflict, there are different forms of cooperation, based on group organization and attitudes.
In the first form, known as primary cooperation, group and individual unite. The group contains nearly all of each individual’s life. The rewards of the group’s work are shared with each member. There is an interlocking identity of individual, group, and task performed. Means and goals become one, for cooperation itself is valued.
While primary cooperation is most often characteristic of preliterate societies, secondary cooperation is characteristic of many modern societies. In secondary cooperation, individuals devote only part of their lives to the group. Cooperation itself is not a value. Most members of the group feel loyalty, but the welfare of the group is not the first consideration. Members perform tasks so that they can separately enjoy the fruits of their cooperation in the form of salary, prestige, or power. Business offices and professional athletic teams are examples of secondary cooperation.
In the third type, called tertiary cooperation or accommodation, latent conflict underlies the shared work. The attitudes of the cooperating parties are purely opportunistic; the organization is loose and fragile. Accommodation involves common means to achieve antagonistic goals; it breaks down when the common means cease to aid each party in reaching its goals. This is not, strictly speaking, cooperation at all, and hence the somewhat contradictory term antagonistic cooperation is sometimes used for this relationship.

Which of the following is an example of the third form of cooperation as it is defined in Paragraph 4

A.Students form a study group so that all of them can improve their grades.

B.A new business attempts to take customers away from an established company.

C.Two rival political parties temporarily work together to defeat a third party.

D.Members of a fanning community share work and the food that they grow.

查看答案
题型:单项选择题

随着社会老龄化的日益加剧,许多社区空巢老人越来越多,他们生活小事不能自理,需要社会特殊照顾。目前,社会对一些独居老人的关照仍显欠缺。逢年过节,虽然有关部门上门送粮油、衣物、金钱等进行慰问,但对于空巢老人来说,关心还不到位,措施还不得力。在这种情况下,需要成立一些传统的养老院、敬老院、社区互助会等更加适合空巢老人欢度晚年的场所,既可以满足老年人的生活需要。还解除子女的后顾之忧,同时也加强了社区群众之间的交流与互助,使越来越多的老人晚年生活得丰富多彩。
这段文字主要说明了( )。

A.空巢老人的出现并非仅来自于老龄化
B.社区是解决空巢老人现象的最佳途径
C.在解决空巢问题时子女应发挥更大作用
D.空巢老人需要生活与精神上的多方帮助

查看答案
微信公众账号搜索答案