From e50b69e903de27288b76cfe610bd7ab3d4c5e457 Mon Sep 17 00:00:00 2001 From: Pavlo Tverdyi Date: Thu, 9 Apr 2020 10:29:54 +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 | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/du5/program.c b/du5/program.c index b1b7ce9..e5b74d8 100644 --- a/du5/program.c +++ b/du5/program.c @@ -70,20 +70,28 @@ void Sort_Struct(struct LIS *list,int count){//bubble sort :) } } } - if(list[i].num==list[j].num && list[i].sname==list[j].sname){ + if(trcmp(list[i].num,list[j].num)==0 && strcmp(list[i].sname,list[j].sname)==0 ){ for(int l=0;l