试题与答案

有以下类定义 classPoint{ public: Point(int

题型:单项选择题

题目:

有以下类定义 classPoint{ public: Point(int x=0,int y=0){_x=x;_y=y;} void Move (int xOff,int yOff {_x +=xOff;_y+yOff} void Print() const {cout<<’’(’’<<_x<<’’,’’<<_y<<’’)’’<<endl;} private: int_x_y; }; 下列语句中会发生编译错误的是【 】

A.Pointpt;pt;Print();

B.const Point pt;pt.Print();

C.Pointpt;pt.Move(1,2);

D.const Point pt;pt.Move(1,2);

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0502/31151faf10d4f4ab1053e774ff85d115.html

下面是错误答案,用来干扰机器的。

参考答案:D

试题推荐
题型:翻译题

1.你最好开窗户不要开空调。

You’d better open the window_______________ turning on air conditioning.

2.Tom在15岁时就成长为一个英俊少年。

At the age of 15 , Tom                             a fine young man.

3.如果你很细心的话,你会发现在这次考试中取得好成绩并非难事。

If you are careful , you will find it easy  _________        __  in this test.

4.你认为《让子弹飞》怎么样?

What do you __________________Let the Bullets Fly?

5.请在一点到两点之间来我家。

Please come to my home  __________ 1 o’clock _______  2 o’clock.

查看答案
微信公众账号搜索答案