From fc1741376fa40506a1721c788c61e84e1556d365 Mon Sep 17 00:00:00 2001 From: Pavlo Tverdyi Date: Thu, 16 Apr 2020 21:23:36 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20'du6/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du6/program.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/du6/program.c b/du6/program.c index 64e6b2b..fb68a22 100644 --- a/du6/program.c +++ b/du6/program.c @@ -60,10 +60,6 @@ int mini; min=list[i].fname; mini=i; for(int j=i+1;j<=count;j++){ - if(strcmp(list[mini].fname,list[j].fname)==0 && list[j].num!=-1){ - list[j].num=-1; - count--; - } if(strcmp(min,list[j].fname)>0){ min=list[j].fname; mini=j; @@ -96,6 +92,13 @@ void print(struct LIS *list,int count,int places){ } } void AAAAA(struct LIS* list, int count,int places){ + for(int i=0;i