һ - רҵ·ĵϷƽ̨

《面向对象程序设计》期末试卷及标准答案修订 - 百度文库

Դû ʱ䣺2025/5/26 5:07:17 loading ƪĵֻ
˵ݽԤݿܲȫҪĵҪݣwordʹáword΢ź:xxxxxxxQQxxxxxx ܸṩĵл֧½⡣

C. ̬ݳԱжõ

D. ͨijԱֱӷеľ̬ݳԱ

18ʽ++i*kеġ++͡*صԪøʽʽԱʾΪ B

A. operator*(i.operator++(),k) B. operator*(operator++(i),k)

C. i.operator++().operator*(k) D. k.operator*(operator++(i))

19ģȷǣ C

A. template B. template

C. template D. template

20еĸຯУ C ijԱ

A. 캯 B. C. Ԫ D. ƹ캯

⣨ǰ14գÿ1֣3գÿ2֣20֣

1ͶĹϵɱΪǶ ʵ

2̬Աû thisָ ԣC++У̬ԱҪʾ̬ݳԱʷǾ̬Ա

3ͼ1УABCDEF࣬ڵ̳е E ڶ̳е D F FĻ ABCDE A DF

캯 Point(Point&)

Point(const Point&) :~ ~Person() ﷨ʽΪconst class_Type object_name class_Type const object_name ã const data_type & reference_name return_type function_name(formal parameters list) const ̬ݳԱstatic datatype variablename ̬static return_type Function_name(formal parameters list) Ԫ friend return_type function_name(formal parameters list)

4ֻ뱣һƣͱʹùؼ virtual Ϊࡣ

5ʵֵĽǶ̬ԿԻΪࣺ ̬̬ Ͷ̬̬

6һһ麯Ϊ

7Ҫvoid fun()ΪAԪӦAĶм friend void fun(A &a)

8гC++еִ븴÷ʽ ̳ ϻģ

9 ڶϵͳͷ֮ǰһЩڴ

10ٶAһĿ캯ԭ˵Ϊ Aconst A&)

11++ΪijԱΪAʽΪA operator++(int)

Ķ4дʱĽ13֣

《面向对象程序设计》期末试卷及标准答案修订 - 百度文库.doc ĵWordĵصԣ㸴ơ༭ղغʹӡ
Ƽ
Copyright © 2012-2023 һ Ȩ | ϵ
:վز֪ʶȨݡϢ紫ȨתصƷַȨ,һ֪ͨǣǻἰʱɾ
ͷQQxxxxxx 䣺xxxxxx@qq.com
ICP2023013149
Top