问题 句型转换

句型转换。

1.Where is Jim?  Do you know? (合并为一句)  

   Do you know  ______ _______ _______?                  

2. What time does the train leave? Could you tell me? (合并为一句)  

   Could you tell me what time  _______ _______ ______?

3. I don't think he is having a sports meeting, ____        _____ ? (改为反意疑问句)

4. —Can you tell me if_______ ______ _______ ______ ______ _______? (根据答句完成问句)  

    —Yes, he will write a book for kids.

5. "Do you want to try something new?"  Tom"s mother asks him. (合并为一句)

   Tom's mother asks him_____ ______ ______to try  something new.

6. Could you tell me the way to the station?  (改为同义句)  

   Could you tell me______ ______ ______ get to the station ?

答案

1. where Jim is  

2. the train leaves  

3. is he  

4. he will writea book for kids  

5.if/whether he wants  

6. how I can

问答题

文件IN.DAT中存有200个4位整型数,函数ReadData()负责将IN.DAT中的数读到数组inBuf[]中。请编写函数findValue(),其功能是:把千位数字和十位数重新组成一个新的十位数ab(新十位数的十位数是原4位数的千位数,新十位数的个位数是原4位数的十位数),以及把个位数和百位数组成另一个新的十位数cd(新十位数的十位数是原4位数的个位数,新十位数的个位数是原4位数的百位数),新组成两个十位数ab-cd>=0,且ab-cd<=10,且两个数均是奇数。求出满足条件的数,用count记录下符合条件的数的个数并按照从小到大的顺序存入数组outBuf[]中。函数WriteData()负责将outBuf[]中的数输出到文件OUT.DAT中并在屏幕上显示出来。
注意:部分源程序已给出。
程序中已定义数组:inBuf[200],outBuf[200],已定义变量:count。
请勿改动主函数main()、读函数ReadData()和写函数WriteData()的内容。

试题程序:


#include<stdio.h>
#define NUM 200
int inBuf[NUM],outBuf[NUM],count=0;
void readData();
void writeData();
void findValue()


void main()

int i;
readData();
findValue();
writeData();
printf("count=%d\n",count);
for(i=0;i<count;i++)
printf("outBuf[%d]=%d\n",i,outBuf[i]);

void readData()

FILE*fp;
int i;
fp=fopen("IN.DAT","r");
for(i=0;i<NUM;i++)
fscanf(fp,"%d,",&inBuf[i]);
fclose(fp);

void writeData()

FILE*fp;
int i;
fp=fopen("OUT.DAT","w");
fprintf(fp,"count=%d\n",count);
for(i=0;i<count;i++)
fprintf(fp,"%d,\n",outBuf[i]);
fclose(fp);

填空题