[此贴子已经被作者于2007-10-11 17:25:19编辑过]
[此贴子已经被作者于2007-10-11 16:47:37编辑过]
struct aa { char *b;};int main(){ aa *p = new aa; p->b = new char[100]; printf("请输入字符串\n"); scanf("%s",p->b); delete p->b; delete p; return 0;}看看还有没有错
[此贴子已经被作者于2007-10-11 16:40:14编辑过]