diff --git a/data.txt b/data.txt index 69777b8..8e8e8e2 100644 --- a/data.txt +++ b/data.txt @@ -1 +1,2 @@ +17450150225 李天一 1 1 1 18408000218 周庆 1 1 1 diff --git a/data2.txt b/data2.txt deleted file mode 100644 index e69de29..0000000 diff --git a/main.c b/main.c index 3d0459a..06aff76 100644 --- a/main.c +++ b/main.c @@ -142,7 +142,7 @@ void display() { struct node tem[1000]; int i=0; - printf("已保存的名学生基本信息:\n"); + printf("已保存的学生基本信息:\n"); FILE *fp=fopen("data.txt","r"); while(fscanf(fp,"%s%s%s%d%s",tem[i].stnum,tem[i].stname,tem[i].sex,&tem[i].age,tem[i].detail)!=EOF){ printf("学号:%-12s姓名:%-8s\t性别:%-4s\t年龄:%-4d\t备注:%-4s\n",tem[i].stnum,tem[i].stname,tem[i].sex,tem[i].age,tem[i].detail); @@ -390,12 +390,14 @@ void _menus2() printf("\t\t\t\t\t*--------5 退出--------------*\n\n"); } + void end() { char c; printf("按任意键继续!\n"); c=getch(); } + int cpassword() { char mi[100]; diff --git a/main.exe b/main.exe index 6615650..40983c9 100644 Binary files a/main.exe and b/main.exe differ diff --git a/user.txt b/user.txt index 7c7034c..fc012c6 100644 --- a/user.txt +++ b/user.txt @@ -1 +1 @@ -zq19991001 1234 \ No newline at end of file +zq19991001 123 \ No newline at end of file