摘要:
1. 为什么需要虚析构函数,什么时候需要?看下面的代码:虚析构函数 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->classClxBase{public:ClxBase(){};virtual~ClxBase(){cout<<"OutputfromthedestructorofclassClxBase!"<<endl;};virtualvoidDoSomething(){cout<<& 阅读全文
posted @ 2010-01-02 22:01
做个不善的人
阅读(295)
评论(0)
推荐(0)