#include <iostream>
class A {
public:
A() {}
virtual ~A() = 0;
static void add(int sz) {
bs = new B[sz];
_sz = sz;
}
static void print () {
for (int i = 0; i < _sz; ++i) {
// std::cout << bs[i].name;
}
std::cout << std::endl;
}
static void del() {
delete[] bs;
}
private:
class B {
public:
B() {
name = "I am Angel!\n";
}
std::string name;
};
static B* bs;
static int _sz;
};
A::B* A::bs;
int A::_sz;
int main() {
A::add(5);
A::print();
A::del();
return 0;
}