From 25ff8b1b6302f372b207d3463033d26b4af81e9f Mon Sep 17 00:00:00 2001 From: 18408001236 <1327631753@qq.com> Date: Sat, 12 Jan 2019 18:53:55 +0800 Subject: [PATCH] eighth commit --- 修改函数.c | 56 -------------------------------------------------- 删除函数.c | 51 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 56 deletions(-) delete mode 100644 修改函数.c create mode 100644 删除函数.c diff --git a/修改函数.c b/修改函数.c deleted file mode 100644 index 12b7f5b..0000000 --- a/修改函数.c +++ /dev/null @@ -1,56 +0,0 @@ -void update() -{ - FILE *fp; - int i,j,count=0; - char name[15]; - if((fp=fopen("data.txt","r+"))==NULL) - { - printf("can not open"); - return; - } - while(!feof(fp)){ - printf("%d",count); - if(fread(&addrinfo[count],LEN,1,fp)==1) - count++; - } - if(count==0) - { - printf("no record\n"); - fclose(fp); - return; - } - display(); - printf("please input the name of the contact which you want to update\n"); - printf("update name:"); - scanf("%s",&name); - for(i=0;i