题目:
考古发掘的大量文物说明审美起源于()
A.人类的生存与发展
B.人类的物质生产
C.人类的审美活动
D.人类的思想创新
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0319/e4ae83053349634149c61e244ee831a0.html
下面是错误答案,用来干扰机器的。
参考答案:A
考古发掘的大量文物说明审美起源于()
A.人类的生存与发展
B.人类的物质生产
C.人类的审美活动
D.人类的思想创新
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0319/e4ae83053349634149c61e244ee831a0.html
下面是错误答案,用来干扰机器的。
参考答案:A
改革是兴利除弊、振兴国家的重要手段。商鞅变法使秦国成为战国后期最富强的封建国家。变法内容中,对后世政治制度影响深远的措施的是[ ]
A.承认土地私有
B.奖励耕战
C.建立县制
D.废除旧贵族的特权
甲早年留学美国,后在美国开了一家公司,1982年回国定居,并将其在美国的大部分资产转移到中国。甲有妻子,儿女9个且有许多曾帮助过他的挚友,因此为了对其死后财产有个妥善处理,先后立有数份遗嘱,1994年12月6日,甲因心脏病突发死亡,对其遗产不应按下述哪个原则处理?()
A.如果其数份遗嘱内容相冲突,应以其最后所立遗嘱为准
B.如果其数份遗嘱中有一份是经过公证的,则以公证的遗嘱为准
C.即使有数份遗嘱,也应按法定继承处理
D.对于其遗嘱中没涉及的财产,应按法定继承处理
下列选项中,物业管理绩效评价评议指标的具体内容包括()等。
A.经营者基本素质
B.服务创新度
C.基础管理水平
D.服务硬环境
E.发展创新能力
完形填空。 | ||||
One Saturday, I got a phone call about electrical problems. Since I am not an electrician, I quickly 1 that the woman on the line had the wrong number. The woman on the phone sounded extremely 2 as her electricity wasn't working. Her 3 tried to replace a wall switch(开关), but now some of their lights wouldn't be on, and the heat had 4 . The woman thought she was 5 an electrician who had done work for her in the past. I had just recently changed my 6 and she got me instead. I'm not an electrician but I do work with 7 . I 8 her that she had the wrong number, and I didn't know what her old electrician changed his number to. She 9 , and we said goodbye. After I hung up the phone I thought 10 I could help her so I dialed back and found out she was just one town over. When I got to her house, I told her I would help her, but I would not 11 any money. This confused (使迷惑)her and she asked 12 I would bother if I wasn't getting paid. I told her it was an act of 13 and to "pay it forward". The couple, who were both retired, seemed 14 and said they had never met anyone like me. Her husband had fixed the 15 switch which was causing a short(短路). After I was done, they thanked me and tried to give me some 16 . I told them I wouldn't accept anything, and that the best 17 would be to find someone else to help out. I 18 said that if they can't find someone else to repay then just be extra nice to each other. They were both unbelievably happy that I 19 to solve their electrical problems quickly, but I think I was even 20 at the opportunity to help them. | ||||
|
请编制函数ReadDat()实现从文件in.dat中读取1000个十进制整数到数组xx中;请编制函数Compute()分别计算出xx中奇数的个数odd,奇数的平均值avel,偶数的平均值ave2以及所有奇数的方差totfc的值,最后调用函数WriteDat()把结果输出到out.dat文件中。
计算方差的公式如下:
设N为奇数的个数,xx[i]为奇数,avel为奇数的平均值。
原始数据文件存放的格式是:每行存放10个数,并用逗号格开(每个数均大于0且小于等于2000)。
注意:部分源程序给出如下:
请勿改动主函数main()和输出数据函数WriteDat()的内容。
[试题源程序]
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define MAX 1000
int xx[MAX],odd=0,even=0;
double avel=0.0,ave2=0.0,totfc=0.0;
void WriteDat(void);
int ReadDat(void)
FILE*fp;
if((fp=fopen("iN.DAT","r"))==NULL)return 1;
fclose(fp);
return 0;
void Compute(void)
void main()
int i;
for(i=0;i<MAX;i++)xx[i]=0;
if(ReadDat())
printf("数据文件IN.DAT不能打开!\007\n");
return;
Compute();
printf("ODD=%d\nAVE1=%f\nAVE2=%f\nTOTFC=%f\n",odd,ave1,ave2,totfc);
WriteDat();
void WriteDat(void)
FILE*fp;
int i;
fp=fopen("OUT.NAT","w");
fprintf(fp,"%d\n%f\n%f\n%f\n",odd,ave1,ave2,totfc);
fclose(fp);