From 1a0cf13d16c670816d387a65b25c73d65b2840fe Mon Sep 17 00:00:00 2001 From: Pavlo Tverdyi Date: Thu, 9 Apr 2020 09:45:27 +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 | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/du5/program.c b/du5/program.c index 7ce9dbc..91d89dd 100644 --- a/du5/program.c +++ b/du5/program.c @@ -75,7 +75,13 @@ void Sort_Struct(struct LIS *list,int count){//bubble sort :) list[j]=ilusion; } if(list[i].num==list[j].num){ - for(int k=0;kstrlen(list[j].sname)){\ + val=strlen(list[i].sname); + } + else{ + val=strlen(list[j].sname); + } + for(int k=0;kstrlen(list[j].fname)){\ + val=strlen(list[i].fname); + } + else{ + val=strlen(list[j].fname); + } + for(int l=0;l