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
C. 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֣