From 0f0485a451464295dc36edc04135b5b045428311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=82=8E=E5=87=89?= <2312524043@qq.com> Date: Wed, 9 Jan 2019 11:57:53 +0800 Subject: [PATCH] third commit --- 修改后L1.c | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 修改后L1.c diff --git a/修改后L1.c b/修改后L1.c new file mode 100644 index 0000000..36f538a --- /dev/null +++ b/修改后L1.c @@ -0,0 +1,66 @@ +void chakan()//鿴ҵϵ +{ + system("cls"); + FILE *ptr1; + struct txl *p; + p=phone; + char name[10]; + int j=0,i,m=0; + p=phone; + ptr1=fopen("sto3.txt","rb"); + if(ptr1==NULL) + { + printf("ͨѶ¼Ϊ\n"); + return; + } +// rewind(ptr1); + while(!feof(ptr1)) + { + if(fread(&p[m],LEN,1,ptr1)==1)//ļݸֵṹ,˲ſԽݵĶԱҵϵ + m++; + } + fclose(ptr1); + printf("Ҫ鿴˵:"); + scanf("%s",&name); + printf(" ͬ˶:\n"); + printf(" 绰 绰 \n"); + for(i=0;i