问题 填空题

下列程序的输出结果为______。
#include<iostream.h>
int&max(int&x,int&y)
return(x>y x:y);)
void main( )

int n=3,m=12;
max(m,n)++;
cout<<"m="<<m<<",n=<<n<<endl;

答案

参考答案:m=13,n=3

解析: 本题考察引用作为形参进行参数传递的知识。max函数的功能是返回较大的那个数,而max(m, n)++的作用是将较大值再进行增一运算。

完形填空
完形填空。
     We were having such bad weather in London that my wife suggested spending Christmas week in    1  
 Italian seaside hotel which we visited last summer. I thought this idea over for a day or two and then    2    
to go. When I asked my brother    3    I could borrow some money from him, he advised me against going 
    4    at that time of year but finally    5    help us when I promised faithfully    6    him back the money
from my next month's salary (工资). The manager of a local tourist office (旅游公司)    7    us some advice
and useful    8    about our journey, hotels and the type of clothes to take with us. "You'd better    9    London
at least two days before Christmas if you can, if not earlier. And I hope you enjoy    10   very much."
( )1. A. a          
( )2. A. agree      
( )3. A. when       
( )4. A. anywhere   
( )5. A. agreed with
( )6. A. to take 
( )7. A. told       
( )8. A. news       
( )9. A. get to     
( )10. A. the days  

B. an           
B. decided     
B. how          
B. everywhere    
B. agreed on   
B. to bring    
B. said to    
B. words        
B. arrive in   
B. Christmas

C. the          
C. wanted      
C. whether      
C. nowhere       
C. agreed to    
C. to pay     
C. made       
C. information   
C. fly to     
C. yourselves

D. /              
D. allowed        
D. why            
D. somewhere        
D. had to        
D. to return  
D. gave           
D. warning         
D. leave       
D. Italy      

填空题