diff --git a/4.c b/5.c similarity index 96% rename from 4.c rename to 5.c index 5f46268..43cbd71 100644 --- a/4.c +++ b/5.c @@ -67,7 +67,7 @@ int show2(int n) for(i=0;inumber,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': diff --git a/4.exe b/5.exe similarity index 80% rename from 4.exe rename to 5.exe index e934f6f..de5b82d 100644 Binary files a/4.exe and b/5.exe differ