C++语言基础教程(吕凤翥)课后习题答案(完整版)
6.4作业题解答
一、选择填空
二、判断下列描述的正确性,对者划√,错者划╳。
三、分析程序
1、运行程序后的输出结果为:
Starting1:
Default constructor called. Default constructor called. Default constructor called. Ending1; Strating2;
Constructor: a=5,b=6 Constructor: a=7,b=8 Constructor: a=9,b=10 Ending2:
Destructor called. a=9,b=10 Destructor called. a=7,b=8 Destructor called. a=5,b=6 Destructor called. a=5,b=6 Destructor called. a=3,b=4 Destructor called. a=1,b=2