|
|
|
@ -67,7 +67,7 @@ int show2(int n)
|
|
|
|
|
for(i=0;i<n;i++)
|
|
|
|
|
{
|
|
|
|
|
fscanf(fp,"%d %s %c %d %d %d %s %s %s",&head->number,head->name,&head->sex,&(*head).birthday.year,&(*head).birthday.month,&(*head).birthday.day,head->address,head->tel,head->E_mail);
|
|
|
|
|
printf("%d %s %c %d %d %d %s %s %s",&head->number,head->name,head->sex,(*head).birthday.year,(*head).birthday.month,(*head).birthday.day,head->address,head->tel,head->E_mail);
|
|
|
|
|
printf("%d %s %c %d %d %d %s %s %s\n",&head->number,head->name,head->sex,(*head).birthday.year,(*head).birthday.month,(*head).birthday.day,head->address,head->tel,head->E_mail);
|
|
|
|
|
}
|
|
|
|
|
fclose(fp);
|
|
|
|
|
}
|
|
|
|
@ -200,6 +200,9 @@ void main ()
|
|
|
|
|
credit(n);
|
|
|
|
|
break;
|
|
|
|
|
case '2':
|
|
|
|
|
printf("请输入学生人数:");
|
|
|
|
|
scanf("%d",&n);
|
|
|
|
|
getchar();
|
|
|
|
|
show2(n);
|
|
|
|
|
break;
|
|
|
|
|
case '3':
|