From 13b4d317b38a5fb1cc5eae5364b78032f2e5394c Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Thu, 9 Apr 2020 23:04:11 +0000 Subject: [PATCH] =?UTF-8?q?Aktualizovat=20=E2=80=9Edu5/program.c=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du5/program.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/du5/program.c b/du5/program.c index f1af489..5cc2045 100644 --- a/du5/program.c +++ b/du5/program.c @@ -72,19 +72,19 @@ int main(){ for(int i =0;iPersonList[j].score){ + if(strcmp(PersonList[i].name,PersonList[j].name)==0){ struct person temp = PersonList[j]; PersonList[j] = PersonList[j+1]; PersonList[j+1]=temp; - c--; + k++; } } } - + k--; printf("Vysledky:\n"); - for(int i =0;i