试题与答案

函数delete(s,i,n)的作用是从字符串s中删除从第i个字符开始的n个字符,请

题型:填空题

题目:

函数delete(s,i,n)的作用是从字符串s中删除从第i个字符开始的n个字符,请填空。
void delete(char s[],int i,int n)
int j,k,length=0;
while(s[length])
【11】
-i;
j=i;If( 【12】 )
k=i+n;
if(i+n<=length)
while(k<length)
s[j++]=s[k++];
s[j]=’\0’;

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0711/9a8fc6bb459a2e2e97187018f49682d4.html

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

参考答案:对

试题推荐
题型:改错题
短文改错。
     此题要求改正所给短文的错误。对标有题号的每一行作出判断;
     如有错误(每行只有一个错误),则按下列情况改正:
     此行多一个词:把多余的词用斜线( \ )划掉,在该行右边横线上写出该词,并也用斜线划掉。
     此行缺一个词:在缺词处加一个漏字符号(∧),在该行右边横线上写出该加的词。
     此行错一个词:在错的词下划一横线,在该行右边横线上写出改正后的词。
     原行没有错的不要改。
At first I was not quite willing to sit down and
watched the 90-minute football match. Usually I just
checked the results because I thought that was dull 
to watch a game in which players kicked a ball each
other. Therefore, my father loves football. During the
World Cup in 2002, my dad stays up late just to watch 
his favorite sport. Seeing her strong interest in this
game of 22 men run after a ball, I decided to sit down
to watch the game. I found the game excited, and my
dad explained for the rules. We shared our joy. Football 
is not too badly as long as I watch it with my dad!
1.                                            
2.                                     
3.         
4.         
5.         
6.         
7.         
8.         
9.         
10.         
查看答案
题型:多项选择题

某项目部为控制材料成本,主要从控制供料成本和量差控制入手。在材料的采购环节,通过网上采购的方式与一供应商签订了水泥、沙、石的供应合同,并由项目部自己组织运输。在材料发放环节,按照发料的原则,尽量控制损耗;使用环节,尽量减少材料的场内运输损耗。
根据场景,回答下列问题。

属于控制供料成本措施的有( )。

A.购买原价核算

B.运杂费的核算

C.限额领料单的核算

D.外运输损耗的核算

E.采购及保管费的核算

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