使用VC6打开考生文件夹下的工程MyProj14。此工程包含一个源程序文件MyMai

题型:问答题

问题:

使用VC6打开考生文件夹下的工程MyProj14。此工程包含一个源程序文件MyMain14.cpp,程序中定义了3个类A、B和C,但类的定义并不完整。
请按要求完成下列操作,将类的定义补充完成:
①类A的成员函数set x(int i,int j)是虚函数,其实现的功能是将类A的保护成员x和y分别设置成i和j并且y具有默认值0。请在注释“//* *1* * ”之后添加适当的语句。
②将类A的成员函数print()声明成员纯虚函数。请在注释“//* *2* *”之后添加适当的语句。
③完成类A的保护数据成员x和y的定义,它们都是整型变量。请在注释“//* *3* *”之后添加适当的语句。
注意:除在指定位置添加语句之外,请不要改动程序中的其他内容。
源程序文件MyMain14.cpp清单如下:
//MyMain14. cpp
#include <iostream>
using namespace std;
class A

public:
//* * * 1 * * *
//* * * 2 * * *
protected:
//* * * 3 * * *
;
class B : public A

public:
void print ()

cout<<x * x<<" , ";

;
class C : public A

public:
void print ()

cout <<x* x * x<<end1;

;
int main ()

A *pa;
B b;
C c;
pa=&b;
pa->setx (5);
pa->print ();
pa=&c;
pa->setx (2);
pa->print ();
return 0;

考点:计算机等级考试C++二级C++机试
题型:问答题

《木兰诗》是我国北朝时期的一首______。

A.五言绝句

B.散文

C.抒情诗

D.叙事诗

题型:问答题

白矾煅制成枯矾主要的目的是

A.使药物疏松

B.便于粉碎

C.失去部分结晶水

D.颜色洁白

E.增强燥湿收敛作用

题型:问答题

Where is love How can we find love
The past ages of man have all been carefully labeled by anthropologists. Descriptions like "Paleolithic Man", "Neolithic Man", etc. , neatly sum up the whole periods. When the time comes for anthropologists to turn their attention to the twentieth century, they will surely choose the label "Legless Man". Histories of the time will go something like this: "in the twentieth century, people forgot how to use their legs. Men and women moved about in cars, buses and trains from a very early age. There were lifts and escalators in all large buildings to prevent people from walking. This situation was forced upon earth dwellers of that time because of miles each day. But the surprising thing is that they didn’t use their legs even when they went on holiday. They built cable railways, ski lifts and roads to the top of every huge mountain. All the beauty spots on earth were marred by the presence of large car parks. "
The future history books might also record that we were deprived of the use of our eyes. In our hurry to get from one place to another, we failed to see anything on the way. Air travel gives you a bird’s eye view of the world—or even less if the wing of the aircraft happens to get in your way. When you travel by car or train a blurred image of the countryside constantly smears the windows. Car drivers, in particular, are forever obsessed with the urge to go on and on: they never want to stop. Is it the lure of the great motorways, or what And as for sea travel, it hardly deserves mention. It is perfectly summed up in the words of the old song: " I joined the navy to see the world, and what did I see I saw the sea. "The typical twentieth century traveler is the man who always says, " I’ve been there. " You mention the remotest, most evocative place names in the world like E1 Dorado, Kabul, Irkutsk and someone is bound to say," I’ve been there"—meaning, "I drove through it at 100 miles an hour on the way to somewhere else. "
When you travel at high speed, the present means nothing: you live mainly in the future because you spend most of your time looking forward to arriving at some other place. But actual arrival, when it is achieved, is meaningless. You want to move on again. By traveling like this, you suspend all experience; the present ceases to be a reality: you might just as well be dead. The traveler on foot, on the other hand, lives constantly in the present. For him traveling and arriving are one and the same thing : he arrives somewhere with every step he makes. He experiences the present moment with his eyes, his ears and the whole of his body. At the end of his journey he feels a delicious physical weariness. He knows that sound. Satisfying sleep will be his : the just reward of all true travelers.

Travelling at high speed means ______.

A. people’s focus on the future
B. a pleasure
C. satisfying drivers’ great thrill
D. a necessity of life

题型:问答题

根据检验指导书的概念,检验指导书主要是指导()。

A、检验人员正确实施检验技术作业的文件

B、检验管理人员正确进行检验工作管理的文件

C、生产作业人员了解产品质量要求的文件

D、生产管理人员了解检验程序的文件

题型:问答题

关于胎儿宫内生长受限以下哪项说法不正确

A.胎儿体重低于同孕龄平均体重的2个标准差

B.以上都不正确

C.胎儿头围与腹围明显不相符合

D.孕37周后,胎儿出生体重小于2500g

E.体重低于同孕龄正常体重的第10百分位数

更多题库