试题与答案

绝缘油中含有的酸性物质不会腐蚀金属材料。

题型:判断题

题目:

绝缘油中含有的酸性物质不会腐蚀金属材料。

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0501/83f8d7b23d543083798be99ab1a5a3d6.html

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

参考答案:D

试题推荐
题型:阅读理解
阅读理解。
                                        Quick Reference Index (索引)           
ACTORS AND
ACTRESSES
385-399MAPS (COLOUR) 517-528
MUSEUMS454-469MEDICAL
DEVELOPMENTS
492841-873
ANIMALS493-496HOLIDAYS841-873
ART, FAMOUS 480-481PLANTS
RIVERS                     
108-109
114-115
HIGHWAYS131-141NATIONAL
PARKS
747-749
BOOKS, BEST
SELLERS
476COUNTRIES 529-615
DISCOVERIES
AND INVENTIONS
336-338 PASSPORTS142-144
ENVIRONMENT80-101POPULATION 616-619
EDUCATION284-321POSTAL
INFORMATION
1033-1039
FLAGS OF THE
WORLD (COLOUR)
513-516SPORTS884-978
1. Where can you find the information on elephants?
[ ]
A. On pages 517-528.
B. On pages 529-615.
C. On pages 616-619.
D. On pages 493-496.
2. If you want to know more about Chinese film star Cheng Long, where should you begin your search?
[ ]
A. POSTAL INFORMATION on page 1033.
B. ACTORS AND ACTRESSES on pages 385-399.
C. ENVIRONMENT on pages 80-101.
D. NATIONAL PARKS on pages 747-749.
3. One who likes surfing can find the information about how to surf on pages _____.
[ ]
A. 142-144
B. 841-873
C. 884-987
D. 517-528
4. If you are interested in Thomas Edison, you may search _____.
[ ]
A. DISCOVERIES AND INVENTIONS
B. ART, FAMOUS
C. POPULATION
D. EDUCATION
5. You can find "Thanksgiving Day" on pages _____.
[ ]
A. 841-873
B. 108-109
C. 284-321
D. 513-516
查看答案
题型:问答题

函数readDat()是从文件IN.DAT中读取20行数据存放到字符串数组XX中(每行字符串长度均小于80)。请编制函数jsSort(),其功能是:以行为单位对字符串按下面给定的条件进行排序,排序后的结果仍按行重新存入字符串数组XX中,最后调用函数writeDat()把结果XX输出到文件OUT.DAT中。条件:从字符串中间一分为二,左边部分按字符的ASCⅡ值降序排序,右边部分按字符的ASCⅡ值升序排序。如果原字符串长度为奇数,则最中间的字符不参加排序,字符仍放在原位置上。
例如,位置 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
则处理后字符串d c b a e f g h
4 3 2 1 9 5 6 7 8
注意:部分源程序存在文件PROG1.C文件中。请勿改动数据文件IN.DAT中的任何数据、主函数main()、读函数readDat()和写函数writeDat()的内容。
[试题程序]
#include
#include
char XX[20][80];
void readDat();
void writeDat();
void jsSort()


void main()

readDat();
jsSort();
writeDat();

void 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],’\n’);
if(p) *P=0;
i++;

fclose(in);

void writeDat()

FILE *out;
int i;
out=fopen("out.dat","w");
for(i=0;i<20;i++)
printf("%s\n",xx[i]);
fprintf(out,"%s\n",xx[i]);

fclose(out);

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