题目内容

有如下的运算符重载函数定义:double operator+(int i,int k){return double(i+k);}但定义有错误,对这个错误最准确的描述是()。

A. #NAME?
B. 两个int型参数的和也应该是int型,而这里将+的返回类型声明为double
C. 没有将运算符重载函数声明为某个类的友元
D. C++已经提供了求两个int型数据之和的运算符+,不能再定义同样的运算符

查看答案
更多问题

The results of the study are of great significance to people everywhere.

A. Right
B. Wrong
C. Not Mentioned

Space-Age Archeology
It's a strange partnership, but a very effective one: Satellites and space-shuttle-carried radar are helping archeologists. How? By "seeing" through sand or through treetops to locate important archeological sites.
The traditional tools for archeologists are shovels and picks. But high technology is making the archeologist's work and time far more productive.
Take for example, the second 1981 flight of the Space Shuttle Challenger. During the mission, a powerful, experimental radar was pointed at a lifeless stretch of desert in Egypt called the Selima Sand Sheet(part of the Sahara Desert). To everyone's surprise, the radar penetrated through the sand to the harder rock beneath. On the surface, there is a little indication that Africa's Sahara Desert was never anything but a desert. When the archeologists studied the radar images, they saw what seemed to be impossible: there was sand-buried landscape that was shaped by flowing water; traces of ancient riverbeds appeared to be over nine miles wide, far wider than most sections of the present-day Nile River. Today, the area is one of the hottest, driest desert in the world.
Archeologists dug pits along the old river banks and found clues to the past: stream-rounded pebbles (鹅卵石), Stone-Age axes, broken ostrich (鸵鸟) eggshells, and the shells of land snails. The archeologists were quite pleased with these findings. For years, they'd been finding stone axes scattered through the desert, and couldn't understand why. Now we know that early humans were living on the banks of old rivers, and left their beautiful tools behind. Some are so sharp that you could shave with them.
More recently, Landsat 4, a special earth-mapping satellite, aided in the discovery of ancient Mayan ruins in Mexico. Lansat can, with the help of false-color imagery, "see through" much of the area. Armed with these maps, a five-person expedition took to the air in a helicopter.
By the end of the second day, the team found a stretch of walled fields that expedition members said look like "old New England fences". They just go on, non-stop, for 40 miles. Later in the week, an ancient village was pinpointed, as was the "lost" city of Oxpemul, once found in the early 1930's but quickly reclaimed by the jungle. The findings made them able to map the extent of the Mayan civilization in about five days. Working on foot, it would have taken at least 100 years.
With the help of the space-shuttle carried radar, archeologists found ______.

A. a new stretch of the Sahara desert
B. traces of ancient riverbeds under the Sahara Desert
C. some traditional archeological tools in the Sahara Desert
D. a mountain beneath the Sahara Desert

有如下程序: #include<iostream> using namespace std; class Complex { double

A. (1,-2)
B. (2,3)
C. (3,5)
D. (3,1)

All things are made up of atoms. When(52)of an atom travels at almost the speed of light(53)we put more energy into it to increase the speed, it begins to in crease in mass. The energy that makes it travel fast cannot make it travel(54)the speed of light—nothing(55)light can travel that fast- so the energy goes into the thing(56)and increases its mass. Energy(57)into mass.
Why is the theory called the theory of relativity? A thing that is relative depends upon(58)else to identify it or to define it. In relativity theory we identify or define mass, time, and length(59)to the speed of light.
When something is at rest, it looks(60)in length. However, when it travels at almost the speed of light, it becomes(61). Time also changes. However, the change in time is(62)to the change in length. The length of a thing becomes short(63)time becomes long.
If you want to(64)young, relative to a friend, take a trip in a spaceship that travels at(65)the speed of light. And, although time and heartbeat seem ordinary to you in the spaceship, when you return, look at your friend; Relative to you, he or she is old.

A. prefers
B. relates
C. belongs
D. adheres

答案查题题库