master
1052720016@qq.com 6 years ago
parent a4efc92696
commit 88a7355a93

@ -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':

Binary file not shown.
Loading…
Cancel
Save