|
|
|
@ -17,7 +17,7 @@ typedef struct
|
|
|
|
|
lm linkman,lkm;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int flag2,p,flag3;
|
|
|
|
|
int flag2,p,flag3,flag4;
|
|
|
|
|
char e_num;
|
|
|
|
|
|
|
|
|
|
void add();
|
|
|
|
@ -353,10 +353,18 @@ void view()
|
|
|
|
|
|
|
|
|
|
if(x==1)
|
|
|
|
|
{
|
|
|
|
|
flag4=0;
|
|
|
|
|
while(!feof(ptr1))
|
|
|
|
|
{
|
|
|
|
|
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);
|
|
|
|
|
if(linkman.kind==1)
|
|
|
|
|
printf("%2d %-10s %-20s °ì¹«Àà %-10s\n",++i,linkman.name,linkman.phonenum,linkman.email);
|
|
|
|
|