strcpy(stu[2]->name, "小红"); scanf("%s",stu[2]->name);
strcpy(stu[2].name,"xiaohong");
加在结构体之后void main(){scanf("%s",stu[2]);}