问题 多项选择题

fclose(fp);

答案

参考答案:void SortDat()
{
int i,j;
PRO xy;
for(i=0;i<II;i++)
for(j=i+A;j<A00;j++)
{
if (strcmp(sell[i].dm,sell[j].dm)<0) /*按产品代码从大到小进行排列*/
{
xy=sell[i];
sell[i]=sell[j];
sell[j]=xy;
}
else if (strcmp(sell[i].dm, sell[j].dm)==0) /*若产品代码相同*/
if (sell[i].je<sell[j].je) /*则按金额从大到小进行排列*/
{
xy=sell[i];
sell[i]=sell[j];
sell[j]=xy;
}
}

解析: 本题考查的知识点如下:
(1) 结构体及结构数组。
(2) 结构数组的排序。
(3) 字符型数组的比较。
本题着重考查结构体变量的访问、赋值,包括结构体本身及结构体中各个成员的访问和赋值。根据题意要求,我们首先要比较产品代码。因为产品代码为字符型,所以不能使用简单的比较运算符进行比较。在这里,我们使用了字符中处理函数 strcmp(char *strll,char *str12,unsigned int cout)对其进行比较。对于比较结果,若是代码相同,则要按照金额进行新的比较,否则可直接存入数组。因为已定义了结构数组,就可以使用循环进行比较排序。排序同样采用前面介绍的“选择排序法”。

单项选择题
完形填空
完形填空。
     Obviously, there was a wall separating my father and me. But I was   1   my father's love. Nobody knew
how   2   I was when I saw other fathers and   3   walking hand in hand.   4  , for me, it was only a dream.
      With years going by, I couldn't   5   it any more. So I decided to tear down this   6   into pieces. But I
needed courage.
      Everything began to   7   after I wrote a letter to my father. I can imagine the   8   look on my father's
face when he read the letter, which was really a   9   to him.
      "I am sorry, my daughter. It is my fault that I have  10  your feelings. But I  11 , from now on, I'll try
my best to be a good father." My father told me this later.  12 , tears rolled down my cheeks.
      He ignored my feelings before, but now he really  13  the importance of love and has changed a lot. Now
  14  I come home from school, my father will talk with me. He will ask me  15  I get along well with my
teachers and classmates and if everything is going well in school. 
       16 , I have entered my father's world. I opened the door to his heart. My  17  has come true!
      I have succeeded in gaining happiness by my own  18  and I'll  19  it for ever and ever. He is my father,
the only one I have.
      "Wherever you go, whatever you do, your mother and I will be  20  there for you," said my father.
( )1.A. angry with        
( )2.A. jealous (嫉妒的)  
( )3.A. mothers            
( )4.A. However            
( )5.A. change            
( )6.A. situation          
( )7.A. turn              
( )8.A. surprised          
( )9.A. reminder          
( )10.A. avoided            
( )11.A. decide            
( )12.A. For the moment    
( )13.A. understands        
( )14.A. in time            
( )15.A. how                
( )16.A. Finally            
( )17.A. expectation        
( )18.A. way                
( )19.A. value              
( )20.A. correctly          
B. indifferent (不在乎) about 
B. disappointed               
B. daughters                 
B. Therefore                 
B. make                       
B. wall                       
B. fade                       
B. exited                     
B. comfort                   
B. ignored                   
B. guess                     
B. The moment                 
B. masters                   
B. at times                   
B. whether                   
B. Luckily                   
B. thought                   
B. effort                     
B. hide                       
B. perfectly                 
C. eager for      
C. uninterested   
C. sons           
C. Anyway         
C. suffer         
C. love           
C. change         
C. appreciated   
C. blow           
C. harmed         
C. promise       
C. Every moment   
C. attaches       
C. at the time   
C. why           
C. Clearly       
C. plan           
C. hands         
C. keep           
C. right       
D. wondering about  
D. puzzled          
D. teenagers        
D. And              
D. bear             
D. dream            
D. vary               
D. interested     
D. shock            
D. forgot             
D. hope           
D. At that moment  
D. follows            
D. every time       
D. when             
D. Regularly      
D. dream              
D. behaviour      
D. remember           
D. very