#include <iostream>
using namespace std;
class A {
int a;
public:
A(int aa=0){a=aa;}
~A( ){cout <<″Destructor A!″<<a<<endl;}
};
class B:public A{
int b;
public:
B(int aa = 0,int bb = 0

欢迎免费使用小程序搜题/刷题/查看解析,提升学历,成考自考报名,论文代写、论文查重请加客服微信skr-web

#include <iostream>
using namespace std;
class A {
int a;
public:
A(int aa=0){a=aa;}
~A( ){cout <<″Destructor A!″<<a<<endl;}
};
class B:public A{
int b;
public:
B(int aa = 0,int bb = 0):A(aa){b = bb;}
~B( ){cout <<″Destructor B!″<< b << endl;}
};
void main( ){
B x(5),y(6,7);
}

DESTRUCTOR B! 7
DESTRUCTOR A! 6
DESTRUCTOR B! 0
DESTRUCTOR A! 5

访客
邮箱
网址

通用的占位符缩略图

人工智能机器人,扫码免费帮你完成工作


  • 自动写文案
  • 自动写小说
  • 马上扫码让Ai帮你完成工作
通用的占位符缩略图

人工智能机器人,扫码免费帮你完成工作

  • 自动写论文
  • 自动写软件
  • 我不是人,但是我比人更聪明,我是强大的Ai
Top