diff --git a/du5/program.c b/du5/program.c index 0e5ca9d..20ea98d 100644 --- a/du5/program.c +++ b/du5/program.c @@ -39,13 +39,14 @@ int keep(struct LIS *list){ } int del(struct LIS *list,int count){ - for(int i=0;i0;j--){ if(strcmp(list[i].fname,list[j].fname)==0 && strcmp(list[i].sname,list[j].sname)==0 && list[j].num!=-1) { - count--; + kount--; list[i].num+=list[j].num; list[j].num=-1; - + printf("\n%d %s %s\n",list[i].num, list[i].sname, list[i].fname); } } }