×

Loading...

不理解?

netee (netee)
你这样做地目的是什么?
实际上派生类初始化之前是会自动调用基类构造函数的,你在基类里的tt的值应该能够继承下来. 但是如果你的基类比较复杂,还是用copy constructor吧.
(#346477@0)
2002-1-25 -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技术讨论