⺣ - רҵ·ĵϷƽ̨

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

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

  • 62 Ķ
  • 3
  • 2025/5/31 9:15:05

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֣

  • ղ
  • Υٱ
  • Ȩ
ĵ10.00 Ԫ VIP
ߣ...

92ƪĵ

ĵ飺

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<

οͿͨغɸƺŰ棩
ƪ
ʱؼۣ10 Ԫ/ ԭ:20Ԫ
VIP
ؼۣ29 Ԫ/ ԭ:99Ԫ
0.3 Ԫ/ ÿ150
ȫվɸ
VIP
ؼۣ29 Ԫ/ ԭ:99Ԫ
0.3 Ԫ/ ÿ150
ȫվɸ
עĵпܡֻĿ¼ݲȫ֮ǰעѸ޷ػ⣬ϵЭ㴦
΢ţfanwen365 QQ370150219
Copyright © ⺣ All Rights Reserved. ICP16052595-3 վͼ ͷQQ370150219 䣺370150219@qq.com