问题详情
下列程序的运行结果是
#include
class A
{
int a;
public:
A(){a=0;}
A(int as)
a=as;
cout<
}
};
void main()
Ax,y(2),z(3);
A.1
B.2
C.3
D.4
请帮忙给出正确答案和分析,谢谢!