试题与答案

—When do youyour parents to stop offerin

题型:选择题

题目:

—When do you          your parents to stop offering you money?

—After I get my first job.

A.consider

B.suggest

C.expect

D.hope

答案:

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

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

小题1:B小题2:A小题3:D小题4:D小题5:C题目分析:这篇短文主要介绍了Peter在英国一所中学上学的情况。首先介绍了上学与放学的时间,然后又介绍了我喜欢的是烹饪。最后写了午饭后的活动,总之很开心了。小题1:细节...

试题推荐
题型:问答题

在文件in75.dat中有200组数据,每组有3个数,每个数均为3位数。函数readDat()是读取这200组数存放到结构数组aa中。请编制函数JsSort(),其函数的功能是:要求在200组数据中找出条件为每组数据中的第一个数大于第二个数加第三个数之和,其中满足条件的个数作为函数JsSort()的返回值,同时把满足条件的数据存入结构数组bb中,再对bb中的数按照每组数据的第一个数加第三个数之和的大小进行升序排列(第一个数加第三个数的和均不相等),排序后的结果仍重新存入结构数组bb中。最后调用函数writeDat()把结果bb输出到文件out75.dat。
注意:部分源程序已给出。
请勿改动主函数main()、读函数readDat()和写函数writeDat()的内容。
试题程序:
#include<stdio.h>
#include<string.h>
#include<conio.h>
typedef struct

int x1,x2,x3;
Data;
Data aa[200],bb[200];
int jsSort ()


void main()

int count;
readDat();
count=jsSort();
writeDat(count);

readDat()

FILE *in;
int i;
in=fopen("in75.dat","r");
for(i=0;i<200;i++)
fscanf(in,"%d %d %d",&aa[i].xl,&aa[i].x2,&aa[i].x3);
fclose(in);

writeDat(int count)
(
FILE *out;
int i;
clrscr();
out=fopen("out75.dat","w");
for(i=0;i<count;i++)

printf("%d, %d, %d 第一个数+第三个数
=%d\n",bb[i].xl,bb[i].x2,bb[i].x3,bb[i].xl+bb[i].x3);
fprintf(out,"%d,%d,%d\n",bb[i].xl,bb[i].x2,bb[i].x3);

fclose(out);

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