linjiangbin02// Dev.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
class A
{
public:
int a;
void ak()
{
int t = 0;
this->a = 9;
}
void Release()
{
delete this;
}
};
class B
{
public:
int b;
};
class C :public B,public A
{
public:
int c;
void ak()
{
int t = 0;
}
};
int main()
{
C* p= new C;
p->ak();
p->Release();
return 0;
}
.