|
|
@ -67,7 +67,7 @@ int show2(int n)
|
|
|
|
for(i=0;i<n;i++)
|
|
|
|
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);
|
|
|
|
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);
|
|
|
|
fclose(fp);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -200,6 +200,9 @@ void main ()
|
|
|
|
credit(n);
|
|
|
|
credit(n);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case '2':
|
|
|
|
case '2':
|
|
|
|
|
|
|
|
printf("请输入学生人数:");
|
|
|
|
|
|
|
|
scanf("%d",&n);
|
|
|
|
|
|
|
|
getchar();
|
|
|
|
show2(n);
|
|
|
|
show2(n);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case '3':
|
|
|
|
case '3':
|