This website requires Javascript to function properly. Please go to the setting of your web browser and enable Javascript for this website.
×
Loading...
Close
Home
Share
不理解?
netee
(netee)
你这样做地目的是什么?
实际上派生类初始化之前是会自动调用基类构造函数的,你在基类里的tt的值应该能够继承下来. 但是如果你的基类比较复杂,还是用copy constructor吧.
(#346477@0)
Last Updated: 2002-1-25
This post has been archived. It cannot be replied.
Share
Report
Replies, comments and Discussions:
问一个C++的问题
枫下论坛主坛
/
工作学习
/
IT技术讨论