若有以下程序: #include <iostream> using namesp

题型:单项选择题

问题:

若有以下程序:
#include <iostream>
using namespace std;
class sample

private:
int x;
public:
sample()
void setx(int i)

x=i;

friend int fun(sample B[],int n)

int m=O;
for (int i=O; i<n; i++)

if(B[i].x>m)
m=B [i].x;

return m;

;
int main ( )

sample A[10];
int arr[]=90,87,42,78,97,84,60,55,78,65;
for (int i=O;i<10;i++)
A[i]. setx (arr[i]);
cout<<fun(A, 10)<<end1;
return 0;

该程序运行后的输出结果是( )。

A.97

B.84

C.90

D.78

考点:计算机等级考试C++二级C++笔试
题型:单项选择题
从B栏中选出A栏中各句的答语。
                 A
( )1. What's your favorite food?
( )2. What time do you get up in the morning?
( )3. Who is your art teacher?
( )4. Why do they like P.E.?
( )5. Does she like math?
            B
A. Sorry, I don't know.
B. Rice.  
C. Because it's exciting.  
D. At around 6:30.                                                              
E. Mr. Zhang is.
题型:单项选择题
能源是社会发展的基础,发展核能是解决能源问题的途径之一.目前各国核电站应用的可能核反应方程是(  )
A.
B.
C.
D.
题型:单项选择题

Practice makes perfect. ______Mr Black passed the driving test easily.

A.As a result

B.In a way

C.What’s more

D.What’s worse

题型:单项选择题

表面活性剂在水中达到临界胶束浓度以上时,难溶性药物进入胶束的不同部位而使其溶解度显著增加并形成澄明胶体溶液,发挥此作用的表面活性剂称为()

A.增溶剂

B.乳化剂

C.起泡剂

D.助溶剂

E.润湿剂

题型:单项选择题

冬天,0℃以下冰冻的衣服也会干,这是______现象;寒冷的冬夜,门窗玻璃______侧出现冰花,这是______现象.

更多题库