我有两节课:
class A {
long int m_Code;
char m_Name[NAME_LEN];
bool vec[2];
};
class B {
A* movie;
char time[LEN_TIME];
};
class C {
int theater_number;
B *b;
};
class D {
C* vec;
public:
void allocate() { vec = new C[10]; } // create a vector: 10 elements of A
};
但我收到一条错误消息:分配大小无效:2425452 字节