master
parent 0ce1f0e50e
commit 6ea5c8e128

@ -17,7 +17,7 @@ typedef struct
lm linkman,lkm; lm linkman,lkm;
int flag2,p,flag3; int flag2,p,flag3,flag4;
char e_num; char e_num;
void add(); void add();
@ -353,10 +353,18 @@ void view()
if(x==1) if(x==1)
{ {
flag4=0;
while(!feof(ptr1)) while(!feof(ptr1))
{ {
fscanf(ptr1, "%s%s%d%s",linkman.name,linkman.phonenum,&linkman.kind,linkman.email); fscanf(ptr1, "%s%s%d%s",linkman.name,linkman.phonenum,&linkman.kind,linkman.email);
if(ftell(ptr1)-2<=flag4)
{
break;
}
else
{
flag4=ftell(ptr1);
}
//printf("%d %-10s %-10s %d %-10s",i,linkman.name,linkman.phonenum,linkman.kind,linkman.email); //printf("%d %-10s %-10s %d %-10s",i,linkman.name,linkman.phonenum,linkman.kind,linkman.email);
if(linkman.kind==1) if(linkman.kind==1)
printf("%2d %-10s %-20s °ì¹«Àà %-10s\n",++i,linkman.name,linkman.phonenum,linkman.email); printf("%2d %-10s %-20s °ì¹«Àà %-10s\n",++i,linkman.name,linkman.phonenum,linkman.email);
@ -519,7 +527,7 @@ void amend()
j=0; j=0;
rewind(ptr1); rewind(ptr1);
while(!feof(ptr1)) while(!feof(ptr1))
{ {

Binary file not shown.

@ -5,6 +5,7 @@
月亮酋长 91111111 2 moon@nasa.us 月亮酋长 91111111 2 moon@nasa.us
火箭舰长 0906342 1 3213@898.cn 火箭舰长 0906342 1 3213@898.cn
梧桐 100322 3 987@qq.com 梧桐 100322 3 987@qq.com
大山 10099 1 gongxifacai@qq.com
美滋滋 666888 2 万事如意@腾讯.com 美滋滋 666888 2 万事如意@腾讯.com
爽歪歪 666666 2 恭喜发财@腾讯.com 爽歪歪 666666 2 恭喜发财@腾讯.com
嘉禾望岗 100006666 3 10384920@mail.com
侨城东 0755123123 1 development@sz.gov.cn

Loading…
Cancel
Save