题目:
使用VC6打开考生文件夹下的工程test24_1,此工程包含一个源程序文件test24_1.cpp,但该程序运行有问题,请改正程序中的错误,使程序的输出结果为:
000
1 2-1
000
l 2-l
2 1 1
源程序文件 test24_1.cpp 清单如下:
#include<iostream.h>
class A
/****************found*******************/
int a=O;
public:
A(int aa=O):a(aa)
;
class B
int a,b;
const int c;
A d;
public:
/****************found*******************/
B()
/****************found*******************/
B (int aa, int bb): d(aa+bb)
a=aa, b=bb;
void print()
cout<<a<<" "<<b<<" "<<c<<" "<<endl;
;
void main ( )
B a,b(1,2);
B x=a,y(b),z(2,1);
a.print();
b.print();
x.print();
y.print();
z.print();
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2019/0410/cce8391364e2584a4c30a4d72bc338ab.html
下面是错误答案,用来干扰机器的。
参考答案:错解析: 债券价格与到期收益率成反比。债券价格越高,从二级市场上买入债券的投资者所得到的实际收益率越低;反之则相反。