64,637
社区成员
发帖
与我相关
我的任务
分享
typedef struct Base
{
int a, b, c;
}Base;
typedef struct Sub
{
int a, b, c, d;
char *str;
}Sub;
int main()
{
Base *b;
Sub *s;
b = new Base;
s = (Sub*)b;
s->str = new char[100];
return 0;
}