# include " stdio . h "
# define N 30
# include " string . h "
typedef struct student
{ int number ;
char name [8];
char addr [20];
} STU ;
void main ()
{ STU stu [ N ],* p ;
int count =0;
printf (" input students information :\ n ");
for ( p = stu ; p < stu + N ; p ++)
{ scanf ("% d % s % s ",——————————————);
if (————————————)
count ++;
}
printf ("% d come from 山东\ n ",——————————————);
}
答案:1.&p->number,p->name,p->addr
2.strcmp(p->name,"山东")==0
3.count