问题 问答题 简答题

给矿作业对浮选指标有何影响?

答案

参考答案:

给矿量波动频繁,不仅影响磨矿作业浓度、细度、也直接影响浮选作业的指标好坏

问答题

已知在文件IN34.DAT中存有100个产品销售记录,每个产品销售记录由产品代码dm(字符型4位)、产品名称mc(字符型10位)、单价dj(整型)、数量s1(整型)、金额je(长整型)几部分组成。其中,金额=单价×数量可计算得出。函数ReadDat()
的功能是读取这100个销售记录并存入数组sell中。请编制函数SortDat(),其功能要求;按产品代码从大到小进行捧列,若产品代码相同,则按金额从大到小进行排列,最终排列结果仍存入结构数组sell中,最后调用函数writeDat()把结果输出到文件 OUT34.DAT中。
注意:部分源程序已给出。
请勿改动主函数main()、读函数RdadDat()和写函数WriteDat()的内容。
试题程序:
#include<stdio.h>
#include<mem.h>
#include<string.h>
#include<conio.h>
#include<stdlib.h>
#define MAX 100
typedef struct

char dm[5];
char mc[11];
int dj;
int s1;
long je;
PRO;
PRO sell[MAX];
void ReadDat();
void WriteDat();
void SortDat()


void main()

memset(sell,0,sizeof(sell));
ReadDat();
SortDat();
WriteDat();

void ReadDat()

FILE *fp;
char str[80],ch[11];
int i;
fp=fopen("IN34.DAT", "r");
for(i=0;i<100;i++)

fgets(str, 80, fp);
memcpy(sell [i].dm, str, 4);
memcpy(sell [i].mc, str+4,10);
memcpy(ch,str+14,4);
ch[4]=0;
sell[i].dj=atoi(ch);
memcpy(ch,str+18,5);
ch[5]=0;
sell[i] .s1=atoi(ch);
sell[i] .je=(long)sell[i].dj*sell[i].s1;
fclose(fp);

void WriteDat()

FILE *fp;
int i;
fp=fopen("OUT34.DAT","w");
for(i=0;i<100;i++)

fprintf(fp,"%s %s %4d %5d %10ld\n",sell[i].dm, sell[i].mc,sell[i].dj,
sell[i].s1, sell[i].je);

fclose(fp);

单项选择题

"Congratulations, Mr. Jones, it’s a girl. "

Fatherhood is going to have a different meaning and bring forth a different answer from every man who hears these words. Some feel proud when they receive the news, while others worry, wondering whether they will be good fathers. Although there are some men who like children and may have had considerable experience with them, others do not particularly care for children and spend little time with them. Many fathers and mothers have been planning and looking forward to children for some time. For other couples, pregnancy was an accident that both husband and wife have accepted willingly or unwillingly.

Whatever the reaction to the birth of a child, it is obvious that the change from the role of husband to that of father is a difficult task. Yet, unfortunately, few attempts have been made to educate fathers in this re-socialization process. Although many good books have been written about American mothers, only recently have some books discussed the role of a father.

It is argued by some writers that the transition to the father’s role, although difficult, is not nearly as great as the transition the wife must make to the mother’s role. The mother’s role seems to require a complete transformation of daily routine and adaptation to a new life, on the other hand, the father’s role is less demanding and immediate. However, even though we have mentioned the fact that growing numbers of women are working outside the home, the father is still thought by many as the breadwinner in the household.

It is stated in the passage that()

A. some parents are not prepared to have a child

B. young couples do not like children at all

C. working couples do not have much time to take care of their children

D. many parents look forward to having a boy as their first child