题目
Richard:_________ . My name is Richard Stewart. May I take a picture of you? Mrs. Vann: By all means, I'm Mrs. Vann. Glad to meet you.
A. I'm sorry
B. Excuse me
C. Pardon me
D. Attention, please
第1题
Mary: I'm dying to see the game! Thanks for the inwtation.
Richard: __________
A. I'm glad you like it.
B. I know it'll be good.
C. It's my pleasure.
D. It s great.
第2题
Richard:You've given us a wonderful Chinese dinner, Mrs. Liu.
Mrs. Liu:______
A、I'm glad you enjoyed it.
B、Oh,I'm afraid I didn't cook very well.
C、Come again when you are free.
D、It's not necessary for you to say so.
第3题
(1)定义类Person的私有数据成员forename、surname 和 money,forename 和 surname都是char型的指针数据,money是double型的数据。请在注释“//**1**”之后添加适当的语句。
(2)完成类Person的带三个参数的构造函数Person(char *f, char *s,double m),分别为forename和surname申请新的空间来存储参数f和s指针指向的内容,注意空间的大小,最后把参数m的值赋给money,请在注释“//**2**”之后添加适当的语句。
(3)完成类Person的析构函数的定义,把forename和surname指向的空间释放,请在注释“//**3**”之后添加适当的语句。
(4)完成类Person的成员函数display的定义,使其以格式“forname surname has money”的形式输出内容,请在注释“//**4*。”之后添加适当的语句。
注意:除在指定位置添加语句之外,请不要改动程序中的其他内容。
输出结果如下:
Richard Berk has 1000.56
源程序文件test28_3.cpp清单如下:
include <iostream.h>
include <string.h>
class Person
{
private:
//** 1 **
double money;
public:
Person(char *f, char *s, double m);
~Person();
void display();
};
Person::Person(char *f, char *s, double m)
{
//** 2 **
strcpy(forename, f);
surname = new char[strlen(s)+1];
strcpy(surname, s);
money=m;
}
Person: :-Person ()
{
//** 3 **
}
void Person:: display ()
{
//** 4 **
}
void main ()
{
Person p("Richard", "Berk", 1000.56);
p.display ();
}
第4题
Richard Gray was a famous explorer (探险家 ) . He was also a millionaire. He had visited every country in the world. He had crossed Antarctica, flown across the Atlantic by balloon, and climbed Mount Everest. Last year he decided to walk across Death Valley, the hottest place on Earth. He walked for days over the hot desert sand. One night he found the camp where he had been the night before. Gray had walked in a circle. He was lost.
Two days later he had drunk all his water. He couldn't walk. He crawled to the top of a sand dune (沙丘) ,and there he saw a man. The man was wearing smart, clean trousers, a white shirt and a tie. Gray crawled over to him.
“Water⋯ water ⋯” he said.
“I'm terribly sorry, old boy,” replied the man, “but I haven't got any water with me.”
“Help me!” shouted Gray, “I'm a rich man…a millionaire… I'II give you anything. ”
“That's very nice of you, old boy,” said the man. “Look, I can't give you any water, but would you like to buy my tie?”
“A tie? Of course not! ” screamed Gray, and crawled away. He crawled slowly up the next sand dune. His mouth was full of sand. His lips were cracked (破裂) and dry. He I couldn't breathe.
He reached the top of the dune and there he saw a huge good hotel.
Girls were swimming in the large swimming pool. Beautiful fountains were all around the hotel.
“Is it a mirage (幻景)? ” he thought. “Am I dying?”
He stood up and staggered (蹒跚) down the dune.
A waiter in shining white uniform. came out of the door.
“Water ⋯water ⋯ a bath! Food! ” screamed Gray.
“I'm sorry, you can't come into this hotel,” said the waiter.
“Why not? I've got plenty of money. . . I'm a millionaire. ”
“Ah,” replied the waiter,“ but you aren't wearing a tie! ”
(1)The famous explorer _________.
A、had crossed Antarctica and the Atlantic by balloon
B、had traveled all over the world
C、had walked across Death Valley
D、had ever been a millionaire
(2)The man offered to sell his tie to Gray because _________.
A、he wished to get some money from Gray
B、Gray was a rich man
C、he didn't have any water with him
D、he thought a millionaire needed to wear a tie
(3)Gray saw _________ from the top of the next dune.
A、a large good hotel
B、many swimming boys
C、a lot of drinking water
D、a beautiful mirage
(4)At last Richard Gray_________
A、got some water to drink
B、was not permitted to enter the hotel
C、was very sorry for the waiter
D、was dying
(5)If Gray __________, he would have got some water to drink in the hotel.
A、had got a lot of money with him
B、had put on his tie at once
C、had said he was a famous millionaire
D、had bought the tie from the man
第5题
A.William
B.Steven
C.Robert
D.Richard
第6题
Richard is taller than any other student in his class.
Richard is _______ _______ student in his class.
第7题
_____ is that he was blessed with a very good memory.
A:What can be said with certainty of Richard Nixon
B:What of Richard Nixon with certainty can be said
C:What can say with certainty of Richard Nixon
D:What of Richard Nixon with certainty can say
第8题
A.30, Richard III, Henry Tudor
B.50, Richard III, Henry Tudor
C.30, Richard I, Henry Tudor
D.50, Richard I, Henry Tudor
第10题
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!