give you a hand

steven99ca (Don)
"我想在base class内部,定义一个base pointer, 用derived class初始化,同时又让他是这个base class的derived class"
FYI:
1.using constructor
If you have few members.
2.using copy constructor
which can handle whatever data members you need,but it 's not always suitable.
BTW,Your code is typically bad practice in OO programming.
(#348664@0)
2002-1-27 -05:00

回到话题: 问一个C++的问题

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=348664