题目内容

C++语言的参数传递机制包括传值和传地址两种,如果调用函数时,需要改变实参或者返回多个值,应该采取 【11】 方式。

查看答案
更多问题

如果一个函数模板声明列出了多个参数,则每个参数之间必须使用逗号隔开,每个参数都必须重复使用关键词 【12】 。

C++的类继承中,默认的继承方式是 【10】 。

Believe it or not, no one can afford to deny or ignore the tiny sparkle of an idea, especially in a/an (31) of knowledge explosion. Like any other aspects of the computer age, Yahoo began as an idea, (32) into a hobby and lately has turned into a full-time passion. The two developers of Yahoo, David Filo and Jerry Yang, Ph. D candidates (33) Electrical Engineering at Stanford University in the United States, started their (34) in April 1994 as a way to keep (35) of their personal interest on the Internet. Before long they found that their homebrewed lists were becoming too long and (36) . And gradually they began to spend more and more time on Yahoo. During the year of 1994, they (37) Yahoo into a customized database designed to (38) the needs of the thousands of users that began to use the service through the closely (39) Internet community. They developed customized software to help them (40) locate, identify and edit material (41) on the Internet. The name Yahoo is (42) to stand for "Yet Another Hierarchical Officious Oracle", but David Filo and Jerry Yang insist that they select the (43) because they considered themselves yahoos. Yahoo itself first (44) on Yang’s workstation, "akebono", while the search engine was (45) on Filo’s computer, "Konishiki". In early 1995 Marc Andersen, one of the (46) of Netscape Communication in Mountain View, California, invited Filo and Yang to move their files (47) to larger computers (48) at Netscape. As a result Stanford’s computer network returned to (49) and both parties benefited from this issue. Today, Yahoo (50) organized information on tens of thousands of computers linked to the web.

A. attains
B. detains
C. maintains
D. contains

有以下程序: #include <iostream> using namespace std; class myclass private: int a, b; public: void init( int i, int j ) a = i; b = j; friend int sum( myclass x ); ; int sum( myclass x ) return x.a + x.b; int main () myclass y; y.init( 15, 20 ); cout<<sum( y )<<end1; return 0; 执行后的输出结果是( )。

A. 15
B. 20
C. 5
D. 35

答案查题题库