From 7057440f68f61ad88e613d81d20295e8e601a6ba Mon Sep 17 00:00:00 2001 From: Pavlo Tverdyi Date: Thu, 9 Apr 2020 14:08:38 +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'du5/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du5/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du5/program.c b/du5/program.c index 5721f23..66e6767 100644 --- a/du5/program.c +++ b/du5/program.c @@ -68,7 +68,7 @@ void Sort_Sname(struct LIS *list,int count){ struct LIS ilusion; for(int i=count-1;i<0;i--){ for(int j=0;j0 ){ + if(list[j].num==list[j+1].num && strcmp(list[j].sname,list[j+1].sname)<0 ){ ilusion=list[j]; list[j]=list[j+1]; list[j+1]=ilusion;