[求助]关于改错
#include<iostream>
using namespace std;
class A{
int x;
public:
A(int a) : x(a){ cout<<"Constructing A\n";}
};
class B : public A
{
public:
B(){ cout<<"Constructing B\n";}
};
int main()
{
B b;
}
using namespace std;
class A{
int x;
public:
A(int a) : x(a){ cout<<"Constructing A\n";}
};
class B : public A
{
public:
B(){ cout<<"Constructing B\n";}
};
int main()
{
B b;
}