有关结构体嵌套的?
程序代码:
#include<stdio.h>//错误啊 #include<stdlib.h> struct yi { char name[10]; int age; char address[20]; } struct er { struct yi *boy[3]; } void main() {int i; struct er *p; for(i=0;i<3;i++) scanf("%s%d%s",p->boy[i]->name,p->boy[i]->age,p->boy[i]->address); for(i=0;i<3;i++) printf("%s\t%d\t%s",p->boy[i]->name,p->boy[i]->age,p->boy[i]->address); }