attention: in C::C():M_B(&M_A), &M_A is not the pass value of M_B's constructor, but the initialization of the member M_B in C class. Therefore, this is a problem.

jami (jami)
2001-8-3 -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技术讨论