×

Loading...

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

goodman (goodman)
class A {

public:
A() { m_a = 0x55;}
~A();

BYTE m_a;
};

class B{

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

BYTE m_b;
};

class C{

public:
C();
~C();

A M_A;
B M_B;
};

C::C():M_B(&M_A)
{
B b = M_B;
}
(#153604@0)
2001-8-2 -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技术讨论