劝你们不要用chrome或者safari# Apple - 家有苹果
w*p
1 楼
【 以下文字转载自 Programming 讨论区 】
发信人: whitetulip (白色郁丁香), 信区: Programming
标 题: 问关于C++Destructor的问题
关键字: 'base class' 'destructor' 'case' 'assignment'
发信站: BBS 未名空间站 (Sat Nov 7 01:06:59 2009, 美东)
#include
using namespace std;
class Base
{
public:
Base(){ cout<~Base(){ cout<};
class Derived: public Base
{
//Doing a lot of jobs by extending the functionality
public:
Derived(){ cout<~Derived()
发信人: whitetulip (白色郁丁香), 信区: Programming
标 题: 问关于C++Destructor的问题
关键字: 'base class' 'destructor' 'case' 'assignment'
发信站: BBS 未名空间站 (Sat Nov 7 01:06:59 2009, 美东)
#include
using namespace std;
class Base
{
public:
Base(){ cout<~Base(){ cout<};
class Derived: public Base
{
//Doing a lot of jobs by extending the functionality
public:
Derived(){ cout<~Derived()