ground A.house B.country C.group D.cough

题型:选择题

问题:

ground  

A.house

B.country

C.group

D.cough

考点:单词、词组
题型:选择题

This cat is weak.  

It's ____________.          [ ]

A. healthy          

B. strong    

C. sick

题型:选择题

司马光在《资治通鉴》中说:“父有过失,子当谏之,岂可潜谋非法,受不孝之名?”对这句话的正确理解是[ ]

①我们对父母的孝敬,不是古代的愚孝,也不是盲目的顺从②父母赋予我们生命,为家庭作出贡献理应受到我们的孝敬③当父母触犯法律时,做儿女的要按法律办事④当父母做出不道德的事时,我们勇于批评和制止是孝的表现

A.①②③④

B.①②③

C.①③④

D.③④

题型:选择题

We must never think we are good at everything        others are good at nothing.

A.that

B.while

C.which

D.who

题型:选择题

婴儿喂养不足是由于()。

A、喂的食物种类过少 

B、喂食的量数过少 

C、进食时速度过快造成 

D、吃了不宜消化的食物

题型:选择题

函数ReadDat()实现从文件in.dar中读取20行数据存放到字符串数组xx中(每行字符串长度均小于80)。请编制函数jsSort(),其函数的功能是:以行为单位对字符串按给定的条件进行排序,排序后的结果仍按行重新存入字符串数组xx中,最后调用函数WriteDat()把结果xx输出到文件out.dat中。
条件:从字符串中间一分为二,左边部分按字符的ASCII值降序排序,排序后左边部分与右边部分进行交换。如果原字符串长度为奇数,则最中间的字符不参加处理,字符仍放在原位置上。
例如:位置 0 1 2 3 4 5 6 7 8
源字符串 a b c d h g f e
1 2 3 4 9 8 7 6 5
则处理后字符串 h g f e d c b a
8 7 6 5 9 4 3 2 1
部分源程序已经给出。
请勿改动主函数main()、读数据函数ReadDat()和输出数据函数WriteDat()的内容。
#include <stdio.h>
#include <string.h>
#include <conio.h>
char xx[20][80];
void jsSort()


void main()

ReadDat();
jsSort();
WriteDat();

ReadDat()

FILE *in;
int i=0;
char *p;
in=fopen("in.dat","r");
while(i<20&&fgets(xx[i],80,in)!=NULL)

p=strchr(xx[i],’In’);
if(p)*p=0;
i++;

fclose(in);

WriteDat()

FILE *out;
int i;
clrscr();
out=fopen("out.dar","w");
for(i=0;i<20;i++)

printf("%s\n",xx[i]);
fprintf(out,"%s\n",xx[i]);

fclose(out);

更多题库