写出以下程序运行结果。已知类CC和函数test的定义如下:classCC{public: CC(){cout<<'1';} ~CC(){cout<<'0';}};voidtest(CCc) {cout<<'2';}intmain(){ CCC; test(C); return0;}
查看答案
写出以下程序运行结果。#includeusingnamespacestd;classB{public:B(inti=1,intj=1){cout<<“B”;a=i;b=j;};voidprintb(){cout<
写出以下程序执行结果。classB{public:B(inti=0,intj=0){a=i,b=j;cout<<“B”;}voidprint(){cout<
写结果#includeusing namespace std;class A{int a;public:A(){a=0;cout<<"A"<
写出以下程序运行结果。已知类CC和函数test的定义如下:classCC{public: CC(){cout<<'1';} CC(CC&c){cout<<'3';} ~CC(){cout<<'0';}};voidtest(CCc) {cout<<'2';}intmain(){ CCC; test(C); return0;}