×

Loading...

看看下面的有什么错?

guest ()
class A
{
public:
A()
{
m_a = 0x55;
try
{
throw new int;
}
catch(...)
{
cout<<"error";
}
}
int m_a;
};

class B
{
public:
B(A *pa) {m_b = pa->m_a;}
int m_b;
};

class C
{
public:
C();

B M_B;
A M_A;
};

C::C():M_B(&M_A)
{
B b = M_B;
}
(#158790@0)
2001-8-7 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: 这是一家公司C++面试题,以下代码有什么错误?

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论