#include <iostream>
using namespace std;
class A
{
public:
class B
{
public:
B()
{
cout << "B is called "<< endl;
}
};
A()
{
cout << "A() is called" << endl;
}
};
int main(int argc,char *argv[])
{
A::B b;
A a;
return 0;
}
c++ 基础
2021-07-01 11:52:27