下面程序是将字符串P中的所有字符复制到字符串b中,要求每复制三个字符后插入一个空格。
#include<stdio.h>
void cp(char *P,char *b)
{int i,k=0;
while(*p)
{i=0;
while(______)/*第一空*/
{b[k]=*p;
k++;p++;i++;
}
if(*p)
{______;/*第二空*/
}
}
______;/*第三空*/
}
main()
{char a[20],b[20];
gets(a);
cp(a,b);
puts(b);
print f("\n");
}
编写程序,计算某个单词在一组文件中出现的频率。对每个文件,可以生成一个返回该文件统计结果的,然后将它们提交Executor。当所有任务完成时,得到一组Future,对它们合并可得到结果。
函数调用“strcpy(str3,strcat(str1,str2))”的功能是()
A.将字符串str1复制到字符串str2中,再连接到字符串str3后
B.将字符串str1连接到字符串str2后,再复制到str3中
C.将字符串str2连接到str1后,再复制到str3中
D.将字符串str2复制到str1中,再连接到str3后
将字符串转换成浮点数的函数是()
A.atof()
B.atoi()
C.stof()
D.stoj()
It can be learned from the second paragraph of the text that______.
A.triathlon is a fast-growing sport in UK
B.Britain used to be barely known
C.triathlon is a prestigious race in USA
D.Hawaii used to be a spot of pains
A.返回字符串、列表、字典、元组等长度
B.返回字符串、列表、字典、元组等宽度
C.返回字符串、列表、字典、元组等类型
D.将字符串、列表、字典、元组等格式化
The paragraph following the passage will most probably discuss______.
A.examples of successful young men
B.how to build up one's position in society
C.joys and pains of old people
D.what to do when one has problems in life