有如下程序:#include<iostream>using namespace st

题型:单项选择题

问题:

有如下程序:

#include<iostream>

using namespace std;

class Pair{

int m;

int n;

public:

Pair(int i,int j): m(i),n(j){}

bool operator>(Pair p)const; //须在类体外给出定义

};

int main( ){

Pair p1(3,4),p2(4,3),p3(4,5);

cout<<(p1>p2)<<(p2>p1)<<(p2>p3)<<(p3>p2);

return 0;

} 运算符函数operator>的功能是比较两个Pair对象的大小,当左边对象大时,返回true,否则返回false。比较规则是首先比较两对象的m成员,m大者为大;当m相等时比较n,n大者为大。程序输出0101,下列对运算符重载函数的正确定义是()

A.bool Pair::operator>(Pair const { if(m! =return m>m; return n>n;}

B.bool Pair::operator>(Pair { if(m! = return m>m; return n>n;}

C.bool Pair::operator>(Pair const { if(m> return true; return n>n;}

D.bool Pair::operator>(Pair { if(m> return true; return n>n;}

考点:计算机等级考试C++全国计算机等级考试二级C++真题2009年3月
题型:单项选择题
Nowadays it is found that school students hardly have any sports. Is it because they have no 1  in sports? It may not be the fact. They often say they have   2 more important things to do.
What are these important things? Examinations! They have to get themselves ready for the most important School Certificates of Education Examination(毕业会考),and also to deal with the tests and the exams in school. So many of them become bookworms.
In the summer holidays after the Examination they could do   3  they like, but at the moment, they have to   4  all their time to the preparation. So studies have prevented them from going in sports.
Because of the pressure(压力)   5  their parents and teachers, they have to work harder and spend most of their time on books. Many parents  6 their children to pass this examination in order to get a stepping stone for higher studies or better jobs. As for the  7    themselves, they want to get good results so that they can get their studies better. So it is necessary that they give up their school activities, especially sports.
Indeed, every school cannot go   8  physical training, for a quick mind seldom goes along with a weak body. It is well said, "All work and no play   9  Jack a dull(迟钝的)boy." In one word, without a strong body, you can never do anything better, let alone a great success in  10  .
小题1:
A.lessonB.timeC.interestD.place
小题2:
A.veryB.otherC.fewD.much
小题3:
A.somethingB.whichC.anythingD.nothing
小题4:
A.spendB.takeC.costD.give
小题5:
A.fromB.ofC.inD.to
小题6:
A.forceB.wantC.makeD.let
小题7:
A.studentsB.teachersC.parentsD.examinations
小题8:
A.forB.afterC.withD.without
小题9:
A.turnsB.makesC.getsD.brings
小题10:
A.sportsB.examsC.trainingD.life
题型:单项选择题

将方程3x2-x=2化为一元二次方程的一般形式为______.

题型:单项选择题

对医师是“仁者”最准确的理解是()

A.仁者爱人,爱病人

B.医师应该精通儒学

C.医师应该是伦理学家

D.医师应该善于处理人际关系

E.医师角色要求道德高尚

题型:单项选择题

测量对角径正确的是()

A.耻骨联合上缘至骶岬上缘中点的距离

B.耻骨联合下缘至骶岬下缘中点的距离

C.耻骨联合上缘中点至骶岬下缘中点的距离

D.耻骨联合下缘中点至骶岬上缘中点的距离

E.耻骨联合下缘至骶岬上缘中点的距离

题型:单项选择题

注压机按结构类型分哪几种?

更多题库