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